Changes between Version 3 and Version 4 of VimBreakIndent


Ignore:
Timestamp:
Feb 19, 2011 3:32:19 PM (13 years ago)
Author:
retracile
Comment:

updated breakindent patch

Legend:

Unmodified
Added
Removed
Modified
  • VimBreakIndent

    v3 v4  
    11 = Vim breakindent patch =
    22
    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 I have been updating that patch as Fedora releases updates for Vim.
     3So 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 [http://www.mail-archive.com/vim-dev@vim.org/msg04076.html posted a patch] for Vim to add that feature.
     4I have been updating that patch as Fedora releases updates for Vim.  Václav has also updated it.
    55
    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.
     6To 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.
     7
     8[attachment:wiki:2011/02/19/09.30:breakindent-20101112-vim7.3.diff Fedora 14, 7.3.056-1.fc14]
     9
     10These older versions of the patch interact badly with `set linebreak`:
    711
    812[attachment:wiki:2010/11/22/23.00:vim-7.3-breakindent.patch Fedora 13, 7.3.055-1.fc13]