diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2019-09-30 16:56:51 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2019-09-30 16:56:51 +0200 |
commit | 74b2cb0bd4d64b066a4ca3a54653d7f42fa680ca (patch) | |
tree | 5f94d0041b04d17047cc9bcee677417bf5134a06 | |
parent | 7e306d22762ee679b2fe085bac6418b92f830447 (diff) |
Set filetype correctly for git commit/config in submodules
See https://gist.github.com/rmccue/d04a65508b0027225cf0
-rw-r--r-- | .vim/filetype.vim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.vim/filetype.vim b/.vim/filetype.vim index 9162750..00e8f47 100644 --- a/.vim/filetype.vim +++ b/.vim/filetype.vim @@ -743,6 +743,8 @@ au BufNewFile,BufRead *.ged,lltxxxxx.txt setf gedcom " Git au BufNewFile,BufRead *.git/COMMIT_EDITMSG setf gitcommit au BufNewFile,BufRead *.git/config,.gitconfig,.gitmodules setf gitconfig +au BufNewFile,BufRead *.git/modules/**/COMMIT_EDITMSG setf gitcommit +au BufNewFile,BufRead *.git/modules/**/config setf gitconfig au BufNewFile,BufRead git-rebase-todo setf gitrebase au BufNewFile,BufRead .msg.[0-9]* \ if getline(1) =~ '^From.*# This line is ignored.$' | |