Recent Changes - Search:

edit SideBar


Firefox 2
Get Thunderbird!

Vim /

QuicklyAlignWholeFile

Tip #977: Quickly align whole file

gg=G 
would quickly align the whole file, but you will be at the beginiing of the file after that. To align and still remain in the same line where you were, just add this mapping to your .vimrc

map <F7> mzgg=G'z<CR>

Now, just press <F7> whenever you want to align your file. I just use. Use whatever you prefer instead of <F7>.

Edit - History - Print - Recent Changes - Search
Page last modified on September 03, 2005, at 04:39 PM