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

14 views
Skip to first unread message

Mike H

unread,
Jan 3, 2010, 6:39:54 PM1/3/10
to vim_use
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....

Thanks

Tim Chase

unread,
Jan 3, 2010, 6:59:43 PM1/3/10
to vim...@googlegroups.com

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

John Beckett

unread,
Jan 3, 2010, 7:53:37 PM1/3/10
to vim...@googlegroups.com
Mike H wrote:
> How to use word wrap (Don't want VIM to cut in the middle of a
> word...) ?

See ':help linebreak' and ':help breakat'.

The following tip is a bit messy but the ToggleWrap function at
the top works nicely:
http://vim.wikia.com/wiki/Move_cursor_by_display_lines_when_wrapping

John

Reply all
Reply to author
Forward
0 new messages