Version 4 (modified by retracile, 14 years ago) (diff) |
---|
Vim breakindent patch
So I wanted Vim to visually wrap long lines, but take the indentation of the line into account when it does so. Apparently, Vim can't do that, but back in 2007 Václav Šmilauer posted a patch for Vim to add that feature. I have been updating that patch as Fedora releases updates for Vim. Václav has also updated it.
To get this behaviour, rebuild vim with this patch, then set breakindent. You can combine it with set showbreak=.. or set showbreak=\ \ to provide a little bit of additional indent to the wrapped portion of the lines.
These older versions of the patch interact badly with set linebreak:
Attachments (1)
-
vim-snapshot-1.png
(30.6 KB) -
added by retracile 14 years ago.
screenshot with indent folding, breakindent, and linebreak
Download all attachments as: .zip