Skip to content

Instantly share code, notes, and snippets.

@calebcgates
Last active November 1, 2016 21:28
Show Gist options
  • Save calebcgates/4aaf5a18a78f6cca35802b5e790d3007 to your computer and use it in GitHub Desktop.
Save calebcgates/4aaf5a18a78f6cca35802b5e790d3007 to your computer and use it in GitHub Desktop.
Vim Commands
:set number
:set autoindent
:set tabstop=4
:imap jj <Esc>
v /word Enter //begin visual select and select until first occurance of word
0 // beginning of line
gm // go to middle
gg // go to bottom
G // go to top
y // copy or yank
dd // delete row
d // delete selection
u // undo
p // paste
:45 Enter // go to line 45
i // insert mode
h,j,k,l // arrow keys in command mode (left, down, up, right)
python block comment: starting line CTRL-V select all (J down) SHIFT-I # (as you type selection goes away) press escape and # is prepened to every (was) selected line
:274,274s/.N]/.N)] find and replace in a range of lines :start,end|substitute "s"|/search/replace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment