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.
Written by Rob Jens
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Viml
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#