Useful Vim stuff - nus-cs2030/2021-s2 GitHub Wiki
Command Mode
gg=Greindent the entire fileuundo the last the command andUto undo the whole lineCTRL-Rto redo:wqto save and exit:q!to trash all changes
gg=G reindent the entire fileu undo the last the command and U to undo the whole lineCTRL-R to redo:wq to save and exit:q! to trash all changes