]> git.madduck.net Git - etc/vim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

fix git filetype detection
authormartin f. krafft <madduck@madduck.net>
Wed, 3 Oct 2007 14:58:57 +0000 (15:58 +0100)
committermartin f. krafft <madduck@madduck.net>
Wed, 3 Oct 2007 14:58:57 +0000 (15:58 +0100)
.vim/ftdetect/git-commit.vim
.vim/ftdetect/git-send-email.vim

index a4a2be07d176ac4136fa8bd233747f462b17d3dc..ef844c3c7dbcc62787b6d480276440e0baf18d46 100644 (file)
@@ -1 +1,3 @@
-au BufRead,BufNewFile COMMIT_EDITMSG     setf git
+augroup filetypedetect
+  au BufRead,BufNewFile COMMIT_EDITMSG set ft=git
+augroup END
index da69c21c1e77a00438b316a771e99bed2dda2a5d..d9c2d2169d497e9b5ce17885ce4e3dc56546caa4 100644 (file)
@@ -1,6 +1,5 @@
 augroup filetypedetect
   " detect git-send-email messages
   au! BufRead,BufNewFile .msg.[0-9]*
 augroup filetypedetect
   " detect git-send-email messages
   au! BufRead,BufNewFile .msg.[0-9]*
-        \ if getline(1) =~ '^From .\+ignored\.$' | setfiletype mail | endif
+        \ if getline(1) =~ '^From .\+ignored\.$' | set ft=mail | endif
 augroup END
 augroup END
-