diff options
author | mattn <mattn.jp@gmail.com> | 2011-10-28 00:43:56 +0900 |
---|---|---|
committer | mattn <mattn.jp@gmail.com> | 2011-10-28 00:43:56 +0900 |
commit | 6bf642f27e160a9218fc839c22627e4c515efa15 (patch) | |
tree | 74390b07b1507fb1d4208c3adb92cd5d760430c0 /plugin | |
parent | 4b0dd04518eff3b8a25e905ab69da6b20acbcbc7 (diff) | |
download | vim-sonictemplate-6bf642f27e160a9218fc839c22627e4c515efa15.tar.gz vim-sonictemplate-6bf642f27e160a9218fc839c22627e4c515efa15.tar.bz2 vim-sonictemplate-6bf642f27e160a9218fc839c22627e4c515efa15.zip |
changed option meaning.
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/template.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/template.vim b/plugin/template.vim index 75c8ffe..b1d2a12 100644 --- a/plugin/template.vim +++ b/plugin/template.vim @@ -32,7 +32,7 @@ endfunction function! s:Template(name) let buffer_is_not_empty = search('[^ \t]', 'wn') - if !exists('g:template_vim_use_always') || g:template_vim_use_always == 0 + if exists('g:template_vim_only_first') && g:template_vim_only_first == 1 if buffer_is_not_empty echomsg 'This buffer is already modified.' return @@ -67,7 +67,7 @@ function! s:Template(name) if len(c) == 0 return endif - if !exists('g:template_vim_use_always') || g:template_vim_use_always == 0 + if exists('g:template_vim_only_first') && g:template_vim_only_first == 1 silent! %d _ silent! put = c silent! normal! ggdd |