Skip to content
cheatsheet
home
/
cv
/
weblog
/
cheatsheet
/
proxy
/
vpn
/
status
/
links
EN
RU
☾
New version available
reload
×
cheatsheet
/
vim
/
Split window and open file
Split window and open file
vim
Vertical split; use Ctrl-w + arrow to navigate panes
:vsplit other.txt
⎘ copy
#vim
#linux
more vim
all 10 commands →
Save and quit
:wq
Quit without saving
:q!
Global search and replace
:%s/old/new/gc
Open file at line number
vim +42 file.txt
Search forward / backward
/pattern (n/N next/prev) ?pattern (backward)