efnzuw
Last Updated: February 25, 2016
·
872
· supersymmetry
Me2

Source format with F7 key in vim

Add the following to your .vimrc (or alternatively, if you use spf13 like myself) .vimrc.local to easily format your source code:

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

This will map source formatting to your F7 key.