Changes between Version 2 and Version 3 of VimBreakIndent
- Timestamp:
- Nov 23, 2010 4:12:48 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
VimBreakIndent
v2 v3 1 1 = Vim breakindent patch = 2 2 3 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 Vaclav Smilauer posted a patchfor Vim to add that feature.3 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 Vaclav Smilauer [http://www.mail-archive.com/vim-dev@vim.org/msg04076.html posted a patch] for Vim to add that feature. 4 4 I have been updating that patch as Fedora releases updates for Vim. 5 5 6 To get this behaviour, rebuild vim with this patch, then set `breakindent`. It isn't bug-free; it appears to interact badly with set linebreak. But 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.6 To get this behaviour, rebuild vim with this patch, then `set breakindent`. It isn't bug-free; it appears to interact badly with `set linebreak`. But 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. 7 7 8 8 [attachment:wiki:2010/11/22/23.00:vim-7.3-breakindent.patch Fedora 13, 7.3.055-1.fc13]