Skip to content

Instantly share code, notes, and snippets.

@anselmdk
Last active January 30, 2017 09:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anselmdk/331dadbbe60921852bfd to your computer and use it in GitHub Desktop.
Save anselmdk/331dadbbe60921852bfd to your computer and use it in GitHub Desktop.
VIM Cheatsheet

VIM Cheat Sheet

Description  Command
Up, down, left right k, j, h, l
Jump words (& back) w, b
 End/beginning of line $, ^/0
End/beginning of file G, gg
Line numbers set number
Page Down Ctrl + d
Page Up Ctrl + b
Replacing strings :%s/local/localhost/g
Search /, write start, and press enter

Syntax Highlighting

Turning syntax highlighting for vi and vim in Mac OS X is as simple as creating a file called “.vimrc” in your home folder with the following content:

set nocompatible
syntax on

Resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment