Vim Command to Indent Code


Filter the highlighted section through the formatting function. You can even specify an external program to use by setting "equalprg".


Change Modes

v enter visual mode

Highlight Selection

j or k selet lines

One & Done

= indent selected lines