vimtricks.wiki Concise Vim tricks, one at a time.

How do you configure line wrapping behavior in Vim?

Answer

set wrap linebreak breakindent

Explanation

Use wrap to wrap long lines, linebreak to break at word boundaries (not mid-word), and breakindent to preserve indentation on wrapped lines.

Next

How do I visually select a double-quoted string including the quotes themselves?