Closed (fixed)
Project:
Vim Plugin For Drupal
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
6 May 2011 at 08:07 UTC
Updated:
12 Oct 2011 at 12:09 UTC
Jump to comment: Most recent file
The attached patch adds persistent undo functionallity to Vim 7.3
It is a feature of Vim 7.3 and thus it will not work on older versions. It allows you to save undo history after closing a file. I believe it can be very usefull at times.
ps: how can I commit it directly to git?
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | vimrc-persistent_undo-1148870-5.patch | 2.01 KB | benjifisher |
| vimrc-persistent_undo.patch | 487 bytes | bserem |
Comments
Comment #1
deviantintegral commentedIs it possible to make the settings conditional on the vim version? Most Linux distros and OS X are on vim 7.2.
To commit to Git, you'd have to agree to the contributor guidelines in your profile. You'd also have to ask for permissions to commit to this project. Best way to get those permissions is to post patches showing your work.
http://drupal.org/contribute/development
Comment #2
bserem commentedThnx for the info on git deviantinegral!
As for the conditional settings, I really can't answer, maybe someone else can!
Comment #3
skottler commentedPlease add a trailing space after "
Comment #4
bserem commentedI'm afraid I don't understand
Comment #5
benjifisherIf I understand skottler's comment #3, then all lines that start with a comment (not those that have code followed by a comment) should have a space after the comment character. The attached patch applies this style to the current git code and also solves the problem raised in #1 that persistent undo only works with vim 7.3 or later.
Comment #6
skottler commentedCommitted. Thanks very much for your patch!
Comment #7
bserem commentedAn if statement inside the .vimrc! Brilliant!
ps: I got the problem on #3 now...