How do I split the Vim window to view two files at once?
:split
The :split command (or s) splits the current window horizontally, creating a new window above with the same file.
:split
The :split command (or s) splits the current window horizontally, creating a new window above with the same file.
:set number!
The :set number! command toggles line numbers on or off.
:g/pattern/d
The :g/pattern/d command deletes every line in the file that matches the given pattern.