From 96bc2b0b98c703ec118adbfe57fed93a28a533ee Mon Sep 17 00:00:00 2001 From: ray Date: Fri, 24 Apr 2020 20:49:23 +0100 Subject: [PATCH] undo center on insert --- init.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/init.vim b/init.vim index 9876014..1e5b458 100644 --- a/init.vim +++ b/init.vim @@ -435,10 +435,10 @@ iabbrev ct'' content-type: ''; "----------------------------------------------------------------------------}}} " #autocommands {{{ -" center on insert {{{ - augroup CenterInsert +" template files {{{ + augroup templates autocmd! - autocmd InsertEnter * norm zt + autocmd BufNewFile *.sh 0read ~/.config/nvim/templates/template.sh | normal G augroup END " }}}