Skip to content

Instantly share code, notes, and snippets.

@rjcorwin
Last active December 22, 2015 00:59
Show Gist options
  • Select an option

  • Save rjcorwin/6393430 to your computer and use it in GitHub Desktop.

Select an option

Save rjcorwin/6393430 to your computer and use it in GitHub Desktop.

#vim shortcuts I use.md

0 - home

$ - end

k - up

j - down

h - left

l - right

dd - delete line

v - visual mode (select mode)

y - copy selected (yank)

p - paste ahead of cursor, unless you copied a line in which case it opens a new line below the cursor and pastes it

P - paste behind cursor, unless you copid a line in which case it opens a new line above the cursor and pastes it

o - open new line below the cursor

O - open a new line above the cursor

b - back to the beginning of the this or previous word

e - forward to end of this or next word

:integer - go to line

/searchText - find text (n - next occurence, p - previous occurence)

:! - see what output is on the terminal

:!run command line code

:split filename.txt - open another file and split the window (ctrl-w up-key and ctrl-w down-key for moving between panes)

. - Do that again

u - undo

[number][some command] - do some command a number of times

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