=
, the indent command can take motions. So, gg
to get the start of the file, =
to indent, G
to the end of the file, gg=G
.
More Related Contents:
- Indent multiple lines quickly in vi
- Tab key == 4 spaces and auto-indent after curly braces in Vim
- How do I exit the Vim editor?
- How to replace a character by a newline in Vim
- What is your most productive shortcut with Vim?
- Why do Vim experts prefer buffers over tabs? [closed]
- How do I exit Vim?
- Turning off auto indent when pasting text into vim
- Make Vim show ALL white spaces as a character
- How do I use vim registers?
- How to paste over without overwriting register
- Move entire line up and down in Vim
- Copy all the lines to clipboard
- Why does vim not obey my expandtab in python files?
- How do I tidy up an HTML file’s indentation in VI?
- Indenting in VIM with all the files in Folder
- How to effectively work with multiple files in Vim
- Traversing text in Insert mode
- Best way to insert timestamp in Vim?
- Remove all arbitary spaces before a line in Vim
- Is it possible to display indentation guides in Vim?
- Find and replace strings in vim on multiple lines
- Vim delete blank lines
- Replace tabs with spaces in vim
- What is the difference between the remap, noremap, nnoremap and vnoremap mapping commands in Vim?
- Vim 80 column layout concerns
- How do I run a terminal inside of Vim?
- Why ci” and ci(, ci{…. behave differently?
- Linux vi arrow keys broken in insert mode
- How to get path to the current vimscript being executed