[PATCH] Vim configurations, add gitcommit filetype to submodules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Git commit in submodules doesn't use the
correct vim syntax. (filetype is set to conf
instead of gitcommit)

This will set ft to gitcommit in all submodules
(also tested on submodules of submodules)

Signed-off-by: Patrick F. Marques <patrickfmarques@xxxxxxxxx>
---

diff --git a/contrib/vim/README b/contrib/vim/README
--- a/contrib/vim/README
+++ b/contrib/vim/README
@@ -19,6 +19,7 @@ To install:
   2. To auto-detect the editing of various git-related filetypes:
 	$ cat >>$HOME/.vim/filetype.vim <<'EOF'
 	autocmd BufNewFile,BufRead *.git/COMMIT_EDITMSG    setf gitcommit
+	autocmd BufNewFile,BufRead *.git/modules/*/COMMIT_EDITMSG    setf gitcommit
 	autocmd BufNewFile,BufRead *.git/config,.gitconfig setf gitconfig
 	autocmd BufNewFile,BufRead git-rebase-todo         setf gitrebase
 	autocmd BufNewFile,BufRead .msg.[0-9]*
--
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]