summaryrefslogtreecommitdiffstats
path: root/ftplugin/git.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin/git.vim')
-rw-r--r--ftplugin/git.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/ftplugin/git.vim b/ftplugin/git.vim
index 38b9493b..e5c34b48 100644
--- a/ftplugin/git.vim
+++ b/ftplugin/git.vim
@@ -12,7 +12,7 @@ endif
let b:did_ftplugin = 1
if !exists('b:git_dir')
- if expand('%:p') =~# '[\/]\.git[\/]modules[\/]'
+ if expand('%:p') =~# '[\/]\.git[\/]modules[\/]\|:[\/][\/]\|^\a\a\+:'
" Stay out of the way
elseif expand('%:p') =~# '[\/]\.git[\/]worktrees'
let b:git_dir = matchstr(expand('%:p'),'.*\.git[\/]worktrees[\/][^\/]\+\>')