1) :set filetype=perl 2) :filetype indent on 3) :e 4) gg=G