Cheatography
https://cheatography.com
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 |
|
|
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-white-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 |
i |
edit |
I |
edit at beginning of line |
A |
edit at end of line |
u |
undo |
U |
restore |
|
|
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 |
|
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets
More Cheat Sheets by boris.indelman