From 74b2cb0bd4d64b066a4ca3a54653d7f42fa680ca Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 30 Sep 2019 16:56:51 +0200 Subject: Set filetype correctly for git commit/config in submodules See https://gist.github.com/rmccue/d04a65508b0027225cf0 --- .vim/filetype.vim | 2 ++ 1 file changed, 2 insertions(+) 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.$' | -- cgit v1.2.3-54-g00ecf