git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] vim ftplugin

From
Aneesh Kumar K.V <aneesh.kumar@gmail.com>
Date
Feb 10, 2007, 14:49 UTC
Message-ID
<45CDDB8B.1000405@gmail.com>

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

@@ -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
 
Message 1 of 1 in “vim ftplugin”
  1. vim ftpluginAneesh Kumar K.V, Feb 10, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.