diff options
author | Max Christian Pohle | 2017-05-14 23:43:32 +0200 |
---|---|---|
committer | Max Christian Pohle | 2017-05-14 23:43:32 +0200 |
commit | a0bc84c10ebf79ce39b1171d8956a8eabb83d6f7 (patch) | |
tree | 0297b0a6c48e959da6e62c2f76b70e5e34e96ecf | |
parent | 9a4b58650564577f356fd2eee06b7d45ce31894a (diff) | |
download | vim-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-full | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 | ||
564 | endif | 567 | endif |
565 | 568 | ||
566 | 569 | ||