Skip to content
cheatsheet
home
/
cv
/
weblog
/
cheatsheet
/
proxy
/
vpn
/
status
/
links
EN
RU
☾
New version available
reload
×
cheatsheet
/
vim
/
Delete lines matching pattern
Delete lines matching pattern
vim
Delete all lines starting with # (comment lines)
:g/^#/d
⎘ copy
#vim
#linux
more vim
all 10 commands →
Re-indent whole file
gg=G
Record and play macro
qa (record into a) q (stop) @a (play) 10@a (play 10 times)
Show line numbers
:set number
Split window and open file
:vsplit other.txt
Save and quit
:wq