vi & vim aids

For my quick reference. To open two files in vi/vim and edit side by side (use CTRL-W + w to switch between the files): # vim -O foo.txt bar.txt To open a file and automatically move the cursor to a particular line number (for example line 80) # vi +80 ~/.ssh/known_hosts To display line numbers along the […]

read more