aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Christian Pohle2017-05-14 23:43:32 +0200
committerMax Christian Pohle2017-05-14 23:43:32 +0200
commita0bc84c10ebf79ce39b1171d8956a8eabb83d6f7 (patch)
tree0297b0a6c48e959da6e62c2f76b70e5e34e96ecf
parent9a4b58650564577f356fd2eee06b7d45ce31894a (diff)
downloadvim-a0bc84c10ebf79ce39b1171d8956a8eabb83d6f7.tar.bz2
vim-a0bc84c10ebf79ce39b1171d8956a8eabb83d6f7.zip
Exclude Vims first 'empty' buffer from bufferlist
That seems to work better, when using a viminfo file, which reopens buffers.
-rw-r--r--vimrc-full3
1 files changed, 3 insertions, 0 deletions
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")
499 augroup END 499 augroup END
500 endif 500 endif
501 501
502 autocmd BufNewFile set nobuflisted
502 " use the shada/viminfo file to return the cursor to where it was... 503 " use the shada/viminfo file to return the cursor to where it was...
503 function! ReturnCursor() 504 function! ReturnCursor()
504 if line("'\"") > 1 && line("'\"") <= line("$") 505 if line("'\"") > 1 && line("'\"") <= line("$")
@@ -561,6 +562,8 @@ if has("autocmd")
561 562
562 " autocmd BufEnter * @f 563 " autocmd BufEnter * @f
563 augroup END 564 augroup END
565
566 autocmd VimEnter * set nobuflisted
564endif 567endif
565 568
566 569
..