From 6bf642f27e160a9218fc839c22627e4c515efa15 Mon Sep 17 00:00:00 2001 From: mattn Date: Fri, 28 Oct 2011 00:43:56 +0900 Subject: changed option meaning. --- plugin/template.vim | 4 ++-- 1 file 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 -- cgit v1.2.3-54-g00ecf