Last active
December 8, 2015 21:38
-
-
Save javikalsan/fd16405685467f4adfec to your computer and use it in GitHub Desktop.
Vim Cheatsheet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ESC mode | |
i => insert | |
a => add/insert at next word/space | |
o => new bottom line and insert | |
O => new up line and insert | |
w => next word | |
b => previous word | |
dd => cut line | |
yy => copy line | |
p => paste | |
D => delete from the current cursor position to the end of the current line | |
C => delete from the current cursor position to the end of the current line and insert | |
d0 => delete from the current cursor position to the beginning of the current line | |
c0 => delete from the current cursor position to the beginning of the current line and insert | |
f => find in line | |
50G => go to line 50 | |
C + f => go to the next page | |
C + b => go to previous page | |
wqa => write all changed buffers and exit Vim | |
gt => go to the next tab | |
2gt => go to the second tab | |
u => undo | |
C + r => redo | |
n => next match search | |
N => previous match search | |
gg => go at beginning of the document | |
GG & C + d => go at the end of the document | |
< > => indent | |
. => repeat last command | |
# VISUAL MODE | |
V => enter in visual mode | |
# : MODE | |
w => write | |
q => quit | |
q! => force quit undoing changes | |
x => write & quit | |
find & replace => %s/search/replace/g | |
/ => search | |
# PLUGIN NERTree | |
C + ww => switch window | |
:NERDTree => open NERDTree | |
in NERDTree => q => quit | |
Cheatsheet => http://www.cheatography.com/stepk/cheat-sheets/vim-nerdtree/ & http://usevim.com/2012/07/18/nerdtree/ | |
# PLUGIN NERTree-tabs | |
Cheatsheet => https://github.com/jistr/vim-nerdtree-tabs | |
# PLUGIN CTRLP | |
C + t => open selected file on new tab | |
Cheatsheet => https://kien.github.io/ctrlp.vim/ | |
# PLUGIN EMMET | |
c + y and , => trigger snippet | |
https://raw.githubusercontent.com/mattn/emmet-vim/master/TUTORIAL | |
# References Cheatsheets | |
https://www.cs.oberlin.edu/~kuperman/help/vim/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment