mirror of
https://github.com/amix/vimrc
synced 2025-08-29 18:35:00 +08:00
Updated plugins
This commit is contained in:
@ -36,7 +36,7 @@
|
||||
" Name Of File: bufexplorer.vim
|
||||
" Description: Buffer Explorer Vim Plugin
|
||||
" Maintainer: Jeff Lanzarotta (my name at gmail dot com)
|
||||
" Last Changed: Thursday, 02 May 2022
|
||||
" Last Changed: Tuesday, 20 Sept 2022
|
||||
" Version: See g:bufexplorer_version for version number.
|
||||
" Usage: This file should reside in the plugin directory and be
|
||||
" automatically sourced.
|
||||
@ -74,7 +74,7 @@ endif
|
||||
"1}}}
|
||||
|
||||
" Version number
|
||||
let g:bufexplorer_version = "7.4.24"
|
||||
let g:bufexplorer_version = "7.4.25"
|
||||
|
||||
" Plugin Code {{{1
|
||||
" Check for Vim version {{{2
|
||||
@ -138,6 +138,9 @@ let s:types = {"fullname": ':p', "path": ':p:h', "relativename": ':~:.', "relati
|
||||
" Setup the autocommands that handle the MRUList and other stuff. {{{2
|
||||
autocmd VimEnter * call s:Setup()
|
||||
|
||||
" Reset MRUList and buffer->tab associations after loading a session. {{{2
|
||||
autocmd SessionLoadPost * call s:Reset()
|
||||
|
||||
" Setup {{{2
|
||||
function! s:Setup()
|
||||
call s:Reset()
|
||||
@ -156,8 +159,9 @@ endfunction
|
||||
" Reset {{{2
|
||||
function! s:Reset()
|
||||
" Build initial MRUList. This makes sure all the files specified on the
|
||||
" command line are picked up correctly.
|
||||
let s:MRUList = range(1, bufnr('$'))
|
||||
" command line are picked up correctly. Check buffers exist so this also
|
||||
" works after wiping buffers and loading a session (e.g. sessionman.vim)
|
||||
let s:MRUList = filter(range(1, bufnr('$')), 'bufexists(v:val)')
|
||||
|
||||
" Initialize the association of buffers to tabs for any buffers
|
||||
" that have been created prior to now, e.g., files specified as
|
||||
|
Reference in New Issue
Block a user