Some useful vi keystrokes/cheatsheet
A couple of useful keystrokes for vi command mode / search (down) n=next occurance (down) ? search (up) N=next occurance (up) dd delete line(s) 5dd delete 5 line(s) u undo delete . repeat command yy copy line(s) 5yy copy 5 line(s) p paste line(s) edit mode i INSERT (mode) :r FILENAME insert contents of FILENAME…