threads / patch / 6759

patchvim ftplugin

Subject: [PATCH] vim ftplugin

## tl;dr

One message between Feb 10, 2007 and Feb 10, 2007. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Aneesh Kumar K.V· Feb 10, 2007, 14:49 UTC · lore

The attached patch is need for the ftplugin found at http://madism.org/~madcoder/dotfiles/vim/ftplugin/git.vim

--- /tmp/git.vim 2007-02-10 19:58:12.000000000 +0530 +++ /home/kvaneesh/.vim/ftplugin/git.vim 2007-02-10 20:08:41.000000000 +0530

Show changes to diff +2 −2
@@ -16,8 +16,8 @@
     " drop everything until '#  (will commit)' and the next empty line
     while i <= line('$')
         let line = getline(i)
-        if line =~ '^#\s*(will commit)$'
-            let i = i + 2
+        if line =~ '^#\s*Changes to be committed:$'
+            let i = i + 3
             break
         endif
 

← back to recent threads