Permalink
Browse files

template: 载入模板后设置缓冲区为“未修改”

  • Loading branch information...
lilydjwg committed Dec 19, 2010
1 parent 0a99747 commit 0376486f3a891a994614fb142c568f8d22094d61
Showing with 1 addition and 0 deletions.
  1. +1 −0 plugin/template.vim
View
@@ -32,6 +32,7 @@ function LoadTemplate(read)
sil exe 'read ' . fname
" 删除空行
normal ggdd
+ setlocal nomodified
endif
exe "command! -buffer Template :tabe " . fname
endfunction

0 comments on commit 0376486

Please sign in to comment.