Hey Kevin Le
Software, web, and programming tips: C++, Java, C, Linux, Windows, Cygwin, Firefox, Vim, WWW, RSS
Showing posts with label
textwidth
.
Show all posts
Showing posts with label
textwidth
.
Show all posts
Monday, August 13, 2007
VIM - format lines to certain width
First,
:set textwidth=80 (or :set tw=80)
Then,
gqq
Format a single line
{Visual}gq
Format visual selection. (ctrl+v to get to visual mode then use hjkl to navigate)
For more help,
:help gq
Older Posts
Home
Subscribe to:
Posts (Atom)