Skip to content
Browse files

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

  • Loading branch information...
1 parent 0a99747 commit 0376486f3a891a994614fb142c568f8d22094d61 @lilydjwg committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 plugin/template.vim
View
1 plugin/template.vim
@@ -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.
Something went wrong with that request. Please try again.