Split the window and open a file
Split vertically; press Ctrl-w, then an arrow key to move between panes
:vsplit other.txt
- tool
- vim10 commands
More vim commands
-
:wqWrite the file and quit vim, the most searched skill in IT
-
:q!Force quit and throw away all changes
-
:%s/old/new/gcReplace all matches and confirm each one (c)
-
vim +42 file.txtStart vim with the cursor on line 42
-
/pattern (n/N next/prev) ?pattern (backward)/ searches forward, ? searches backward, n/N go to the next or previous match