From 6a933d2c24bebe66068f6810ea91c77cf67abb88 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Mon, 29 Sep 2014 11:38:01 +0200 Subject: [PATCH] Don't start at 'vim -y' References #111. --- autoload/startify.vim | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/autoload/startify.vim b/autoload/startify.vim index 145565c..dea52aa 100644 --- a/autoload/startify.vim +++ b/autoload/startify.vim @@ -38,6 +38,10 @@ endfunction " Function: #insane_in_the_membrane {{{1 function! startify#insane_in_the_membrane(callingbuffer) abort + if &insertmode + return + endif + if !empty(v:servername) && exists('g:startify_skiplist_server') for servname in g:startify_skiplist_server if servname == v:servername @@ -52,8 +56,16 @@ function! startify#insane_in_the_membrane(callingbuffer) abort enew set filetype=startify - setlocal noswapfile nobuflisted buftype=nofile bufhidden=wipe - setlocal nonumber nocursorline nocursorcolumn nolist statusline=\ startify + setlocal + \ bufhidden=wipe + \ buftype=nofile + \ nobuflisted + \ nocursorcolumn + \ nocursorline + \ nolist + \ nonumber + \ noswapfile + \ statusline=\ startify if v:version >= 703 setlocal norelativenumber endif