Vim commands I always forget
Format Lines - gq
gq{motion}
{Visual}gq
gqq
...
I'd suggest you check out :help gq and :help gw.
Also setting textwidth (tw) will give you auto line break when exceeded during typing. It is used in gq too, though if disabled gq breaks on window size or 79 depending on which comes first.
:set tw=80
Written by Steven
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#