aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2011-10-28 00:43:56 +0900
committermattn <mattn.jp@gmail.com>2011-10-28 00:43:56 +0900
commit6bf642f27e160a9218fc839c22627e4c515efa15 (patch)
tree74390b07b1507fb1d4208c3adb92cd5d760430c0
parent4b0dd04518eff3b8a25e905ab69da6b20acbcbc7 (diff)
downloadvim-sonictemplate-6bf642f27e160a9218fc839c22627e4c515efa15.tar.gz
vim-sonictemplate-6bf642f27e160a9218fc839c22627e4c515efa15.tar.bz2
vim-sonictemplate-6bf642f27e160a9218fc839c22627e4c515efa15.zip
changed option meaning.
-rw-r--r--plugin/template.vim4
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