Sunday, April 15, 2012

vim line wrap or line break

When editing text files, you might want vi/vim to insert line break automatically.

:set textwidth=60

To format a paragraph, move cursor anywhere inside the paragraph, type gqip or gqap

No comments:

Post a Comment