diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2013-06-18 16:19:41 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2013-06-18 16:20:34 +0200 |
commit | 934dd7b8b32c72a8da74812bd6bc126597368426 (patch) | |
tree | 183e047b809ffb10d822b1da318a9de24eaeccde | |
parent | 0b0760536f122b2aa2b2e84a821fd82603737401 (diff) | |
download | vim-gitmodeline-934dd7b8b32c72a8da74812bd6bc126597368426.tar.gz vim-gitmodeline-934dd7b8b32c72a8da74812bd6bc126597368426.tar.xz vim-gitmodeline-934dd7b8b32c72a8da74812bd6bc126597368426.zip |
Use a dash instead of a dot cause git can't handle it.
-rw-r--r-- | README | 4 | ||||
-rw-r--r-- | plugin/git_modeline.vim | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -12,8 +12,8 @@ define a vim.modeline.<FT> git config entry. Example, C indented with 4 spaces, but Makefile with 8 space tabs: - git config --add vim.modeline.c "ts=4 sw=4 et" - git config --add vim.modeline.make "ts=8 sw=8 noet" + git config --add vim.modeline-c "ts=4 sw=4 et" + git config --add vim.modeline-make "ts=8 sw=8 noet" If no filetype specific entry can be found it will use the default modeline. diff --git a/plugin/git_modeline.vim b/plugin/git_modeline.vim index 70b4183..7d2f770 100644 --- a/plugin/git_modeline.vim +++ b/plugin/git_modeline.vim @@ -66,7 +66,7 @@ fun! <SID>DoSetModeline(line) abort endfun fun! <SID>GitConfigModeline() abort - let git_config_modeline = system("git config --get vim.modeline." . &ft) + let git_config_modeline = system("git config --get vim.modeline-" . &ft) if strlen(git_config_modeline) call <SID>DoSetModeline(git_config_modeline) |