Skip to content

Instantly share code, notes, and snippets.

Last active November 23, 2015 07:00
What would you like to do?
Vim Bullet Points

Command Mode

  • 'a' - append after the cursor
  • 'A' - append at the end of current line


  • :vimgrep can help you to search through multiple files. It also tells you where you are now in the search. You can use :copen to see all matches.
  • :vnew Open an empty buffer as a vertical split
  • :%s/old/new/gc Replace all old with new throughout file with confirmations

Key Mappings

  • <c-w> h/j/k/l Switch between split windows
  • <c-w> v/s Split window (vertical & horizontal)
  • <shift-j> Join two lines


  • From shell run $ vimdiff file1 file2 to see diff of two files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment