Show Menu
Cheatography

cheatsheet for vim. shortcuts

search

/keyword + enter
search in file
n
next in search
N
previous in search

Code selection

v
select code
V
select line
y
copy selected code
p
paste code

undo redo

u
undo
 

deleting code

dd
delete current line
2dd
delete 2 lines
dw
delete next word
db
delete previous word
d←
delete current and left character
d$
delete from current position to end of line
d^
delete from current backward to first non-wh­ite­-space character
d0
delete from current backward to beginning of line

code editing

o
new line beneath
O
new line above
:m+2
move current line, 2 lines down
 

toolbars

\n
file tree bar
\t
tag bar

code navigation

0
go to head of line
^
got to first word in line
: shift+g
end of file

Support Cheatography!

 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          VI Editor Cheat Sheet
          Vim NERDTree Cheat Sheet
          cVim Keyboard Shortcuts

          More Cheat Sheets by boris.indelman

          Pycharm Cheat Sheet
          shell Cheat Sheet
          tmux