diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2013-12-11 11:30:08 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2013-12-11 11:30:56 +0100 |
commit | 6b2b7bdb1b48905adcd4a95058fbcadd713c8ded (patch) | |
tree | 95756e1706b58f586055954a684d047f8d82bcaf | |
parent | 934dd7b8b32c72a8da74812bd6bc126597368426 (diff) | |
download | vim-gitmodeline-master.tar.gz vim-gitmodeline-master.tar.xz vim-gitmodeline-master.zip |
-rw-r--r-- | plugin/git_modeline.vim | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/plugin/git_modeline.vim b/plugin/git_modeline.vim index 7d2f770..be6e7d6 100644 --- a/plugin/git_modeline.vim +++ b/plugin/git_modeline.vim @@ -68,13 +68,25 @@ endfun fun! <SID>GitConfigModeline() abort let git_config_modeline = system("git config --get vim.modeline-" . &ft) - if strlen(git_config_modeline) + if strlen(git_config_modeline) > 0 + if g:git_modeline_verbose + echohl WarningMsg + echo "Filetype(" . &ft . ") git modeline: " . git_config_modeline + echohl None + endif + call <SID>DoSetModeline(git_config_modeline) return endif let git_config_modeline = system("git config --get vim.modeline") - if strlen(git_config_modeline) + if strlen(git_config_modeline) > 0 + if g:git_modeline_verbose + echohl WarningMsg + echo "git modeline: " . git_config_modeline + echohl None + endif + call <SID>DoSetModeline(git_config_modeline) endif endfun |