set split behaviour, center on insert autocmd

This commit is contained in:
Ray Elliott 2020-04-24 13:01:59 +01:00
parent 5e27aaedaf
commit 94051bca28
1 changed files with 9 additions and 0 deletions

View File

@ -216,6 +216,8 @@ set directory=~/.vim/.vimtmp
set viewoptions-=options set viewoptions-=options
set splitbelow splitright
set ignorecase set ignorecase
set smartcase set smartcase
@ -433,6 +435,13 @@ iabbrev ct'' content-type: '';
"----------------------------------------------------------------------------}}} "----------------------------------------------------------------------------}}}
" #autocommands {{{ " #autocommands {{{
" center on insert {{{
augroup CenterInsert
autocmd!
autocmd InsertEnter * norm zt
augroup END
" }}}
" template files {{{ " template files {{{
augroup templates augroup templates
autocmd! autocmd!