Git Product home page Git Product logo

vimrc's Introduction

vimrc

My vim configuration files

Install

You can copy the files like usual, I've made a install.sh script you can run though to do it as well.

What is configured?

The biggest things are my custom syntax colors, spell check is enabled, and <Tab> being bound to opening netrw to give you a file browser in the editor.

If you're new to netrw here are some quick shortcut keys you can use in the window:

  • Enter - Edit file - Opens the highlighted file in the last used buffer.
  • % - Create new file - Creates a new file in CWD, NOT the one you've highlighted. This does open the file in the netrw window though and pressing <Tab> will close it without warning or writing.
  • v - Open in vertical split - Splits last active window vertically and opens file in new buffer.
  • D - Delete file - Deletes the highlighted file.
  • R - Rename file - Rename the highlighted file.
  • x - Open file - Open the highlighted file with associated program.(ie xdg-open, to view a PDF)

Vim tips

Here are some general vim tips that will help make your life easier. I'm skipping some basic ones you probably memorized already:

Normal Mode

  • v - Visual mode - Lets you see a text selection starting from where you cursor was. Can then be used with other commands like y & d.
  • { & } - Next & Prev empty line
  • gg - Top of buffer
  • GG - Bottom of buffer
  • . - Repeat last edit - Repeats the last thing you did which can include editing in Insert mode. Very useful for bulk changes with using the command line.
  • / & n - Find & Next - Find instances of a search and move to the next instance.
  • z= - Spell check word - Shows similar words to replace a word with based on spelling. Chose new word with its number.

Command Line

  • % - Select buffer - This means you'll run the command on the whole buffer (ex %s/this/that/g will replace this with that everywhere in the open file)
  • #,# - From line # to line # - Select line number range to perform command on.(ex 22,25s/this/that/g will replace this with that on lines 22, 23, 24, & 25 in the open file)

Visual Mode

  • : - Run command on selection - This will insert '<,'> in the command line which will let you run commands on the selected text.(ex '<,'>s/this/that/g will replace this with that in the selected text)

vimrc's People

Contributors

akbkuku avatar

Stargazers

Gregory Bowne avatar Sohaib Mohamed avatar Tristan Ross avatar Evie Viau avatar

Watchers

 avatar  avatar

Forkers

theniwo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.