Sunday, January 3, 2010

Re: How to use word wrap (Don't want VIM to cut in the middle of a word...)

Mike H wrote:
> How to use word wrap (Don't want VIM to cut in the middle of a
> word...) ?
>
> Although I turn on word wrapping functionality, VIM cuts in the middle
> of a word.
>
>
> ----------- appreci
> ation
>
>
> How can I prevent that ? I want the whole word to be moved to the next
> line....

Check out the 'linebreak' and 'breakat' settings.

:set linebreak

For most things, the default 'breakat' should be fine, but you
can tweak the behavior if needed.

:help 'linebreak'
:help 'breakat'

-tim

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment