i Enter insertion mode
esc Exit insertion mode
v Visually select some text
y Yank (copy) selection (or double-tap for line)
d Delete (cut) selection (or double-tap for line)
p Paste
u Undo
CTRL+R Redo
:e Open a new file
/[query] Search for [query]
:! ./% Execute this file
:wq write and quit
:[n] Jump to line [n]
Open file & Jump to line: vim [file] +[n]
Open file & Jump to search result: vim [file] +/[query]
Auto-complete: ctrl+n
Auto-complete path: ctrl+x, ctrl+f
Load bash history into vim: history | vim -
Swap to CLI and back: ctrl+z & fg
# vimdiff file1 file2
# CTRL-W h move to the window on the left
# CTRL-W j move to the window below
# CTRL-W k move to the window above
# CTRL-W l move to the window on the right
Last active
February 15, 2016 05:07
-
-
Save deanrather/7310797 to your computer and use it in GitHub Desktop.
Dean Learns Vim
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://blog.humblecoder.com/8-vim-plugins-that-increase-productivity/