Cheatsheet
Quick reference for features that I use frequently.
Dealing with files and panes
:e filename: open a new file to edit with namefilename(need to use:wto actually save the new file):wto write (save) - remapped to<leader> s:qto quit - remapped to<leader> q:vsplit filename(vertical split) or:split filename(horizontal split) to split panes with the specified file<C-w-w>to switch panes:!rm filenameto delete a file (:!can run any shell command)
Undo/Redo
u: undoU: undo current line<C-r>: redo
Misc
gu: command to make text lowercase (ex:guiwto make current word lowercase)gU: command to make text uppercase (ex:gUiwto make current word uppercase)- Handy for things like env var names
:noh: turns off highlighting until the next search. Useful for clearing highlighting after a search until the next one.