From a0bc84c10ebf79ce39b1171d8956a8eabb83d6f7 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Sun, 14 May 2017 23:43:32 +0200 Subject: Exclude Vims first 'empty' buffer from bufferlist That seems to work better, when using a viminfo file, which reopens buffers. --- vimrc-full | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vimrc-full b/vimrc-full index d186aa0..6d00f7b 100644 --- a/vimrc-full +++ b/vimrc-full @@ -499,6 +499,7 @@ if has("autocmd") augroup END endif + autocmd BufNewFile set nobuflisted " use the shada/viminfo file to return the cursor to where it was... function! ReturnCursor() if line("'\"") > 1 && line("'\"") <= line("$") @@ -561,6 +562,8 @@ if has("autocmd") " autocmd BufEnter * @f augroup END + + autocmd VimEnter * set nobuflisted endif -- cgit v1.2.3