Joined November 2012
·

Darrell Grainger

QA Consultant at ThoughtWorks
·
Toronto, ON, Canada
·

Posted to Indenting entire file in Vim over 1 year ago

This only works if you have the filetype plugin and indent on. To have these enabled edit the ~/,vimrc file and add the following lines:

filetype plugin on
filetype indent on

only after you add those lines to the .vimrc file will the gg=G automatically indent files based on their file type.

Achievements
64 Karma
7,855 Total ProTip Views