Re-indent the whole file
Go to the top (gg) and re-indent to the end of the file (=G)
gg=G
- tool
- vim10 commands
More vim commands
-
qa (record into a) q (stop) @a (play) 10@a (play 10 times)Macros repeat the same edits for you in vim
-
:set numberTurn on line numbers; :set nonumber hides them
-
:vsplit other.txtSplit vertically; press Ctrl-w, then an arrow key to move between panes
-
:wqWrite the file and quit vim, the most searched skill in IT
-
:q!Force quit and throw away all changes