Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Include the Vim breakindent patch #501
Include the patch described and available for download here:
“It causes wrapped lines to be indented to line up with the start of the line”.
It adds a feature that I’ve always wanted to see in Vim. Though I’ve never actually used this patch’s implementation, because I don’t know how to build Vim with a patch on my system and keep that patch updated through updates of Vim – I just know that I love this feature in the few other editors that support it. It sounds from the Google Groups link that Bram just forgot about it and never got around to adding it. If it were built into NeoVim, that would mean people wouldn’t have to figure out how to add the patch themselves, and NeoVim would have another useful, simple feature.
I don’t know how much porting, if any, the most recent version of the patch would need to work with the current version of NeoVim. It might be directly apply-able, or it might need changing to match recent patches in plain Vim or the refactorings in NeoVim.
@greduan Vim already supports “tab handling (space or actually tab)” like you describe. The relevant options are 'expandtab', 'shiftwidth', 'tabstop', and 'softtabstop'. If you set all of them the way you want, tabs and spaces will work like in Sublime Text. You can see an example of how to set them in my
Since this finally landed in vim proper, I messed with porting over the patches.
There is a decent number of warnings, and 1 actual err.
I have literally zero C experience, so I don't know if I can ever figure out all of the issues in a way that would be mergable, but it doesn't seem like it would be much of a hassle for anyone who knows what they are doing.