From 94051bca28f3b756b27520d4cd4ec4ab926f4e85 Mon Sep 17 00:00:00 2001 From: ray Date: Fri, 24 Apr 2020 13:01:59 +0100 Subject: [PATCH] set split behaviour, center on insert autocmd --- init.vim | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/init.vim b/init.vim index 531770b..9876014 100644 --- a/init.vim +++ b/init.vim @@ -216,6 +216,8 @@ set directory=~/.vim/.vimtmp set viewoptions-=options +set splitbelow splitright + set ignorecase set smartcase @@ -433,6 +435,13 @@ iabbrev ct'' content-type: ''; "----------------------------------------------------------------------------}}} " #autocommands {{{ +" center on insert {{{ + augroup CenterInsert + autocmd! + autocmd InsertEnter * norm zt + augroup END + +" }}} " template files {{{ augroup templates autocmd!