1
0
mirror of https://github.com/amix/vimrc synced 2025-08-29 18:35:00 +08:00

Updated plugins

This commit is contained in:
Amir
2022-08-08 15:45:56 +02:00
parent b41536726f
commit 765adb9da3
216 changed files with 4784 additions and 2112 deletions

View File

@ -14,7 +14,7 @@ With bufexplorer, you can quickly and easily switch between buffers by using the
`\<Leader\>bv` force vertical split open
Once the bufexplorer window is open you can use the normal movement keys (hjkl) to move around and then use <Enter> or <Left-Mouse-Click> to select the buffer you would like to open. If you would like to have the selected buffer opened in a new tab, simply press either <Shift-Enter> or 't'. Please note that when opening a buffer in a tab, that if the buffer is already in another tab, bufexplorer can switch to that tab automatically for you if you would like. More about that in the supplied VIM help.
Once the bufexplorer window is open you can use the normal movement keys (hjkl) to move around and then use `<Enter>` or `<Left-Mouse-Click>` to select the buffer you would like to open. If you would like to have the selected buffer opened in a new tab, simply press either `<Shift-Enter>` or `t`. Please note that when opening a buffer in a tab, that if the buffer is already in another tab, bufexplorer can switch to that tab automatically for you if you would like. More about that in the supplied VIM help.
Bufexplorer also offers various options including:
- Display the list of buffers in various sort orders including:
@ -69,7 +69,7 @@ This plugin can also be found at http://www.vim.org/scripts/script.php?script_id
git clone https://github.com/jlanzarotta/bufexplorer.git ~/.vim/bundle/bufexplorer.vim
## License
Copyright (c) 2001-2021, Jeff Lanzarotta
Copyright (c) 2001-2022, Jeff Lanzarotta
All rights reserved.

View File

@ -1,7 +1,7 @@
*bufexplorer.txt* Buffer Explorer Last Change: 08 Dec 2018
*bufexplorer.txt* Buffer Explorer Last Change: 02 May 2022
Buffer Explorer *buffer-explorer* *bufexplorer*
Version 7.4.21
Version 7.4.24
Plugin for easily exploring (or browsing) Vim|:buffers|.
@ -263,6 +263,17 @@ The default is 1.
===============================================================================
CHANGE LOG *bufexplorer-changelog*
7.4.23 January 23, 2022
- Merged in changes from benoit-pierre that fixes an error thrown when vim
is in read-only mode.
- Merged in changes from tartansandal that implements the use of an
independent variable to track window splitting since s:splitMode != ''
no longer implies that a split was triggered.
7.4.22 January 5,2022
- Merged in change from nadean that fixed an issue that if you use either
split mode, you could no longer use the regular non-split mode. This was
because the split mode set s:splitMode and that variable was never reset
to "" to allow you run without split mode.
7.4.21 December 8, 2018
- Merged in changes from adelarsq that introduced ryanoasis/vim-devicons
support. If the global g:loaded_webdevicons has been set, bufexplorer
@ -774,7 +785,7 @@ won't list names.
===============================================================================
COPYRIGHT *bufexplorer-copyright*
Copyright (c) 2001-2017, Jeff Lanzarotta
Copyright (c) 2001-2022, Jeff Lanzarotta
All rights reserved.
Redistribution and use in source and binary forms, with or without

View File

@ -1,5 +1,5 @@
"============================================================================
" Copyright: Copyright (c) 2001-2018, Jeff Lanzarotta
" Copyright: Copyright (c) 2001-2022, Jeff Lanzarotta
" All rights reserved.
"
" Redistribution and use in source and binary forms, with or
@ -35,8 +35,8 @@
" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
" Name Of File: bufexplorer.vim
" Description: Buffer Explorer Vim Plugin
" Maintainer: Jeff Lanzarotta (delux256-vim at outlook dot com)
" Last Changed: Saturday, 08 December 2018
" Maintainer: Jeff Lanzarotta (my name at gmail dot com)
" Last Changed: Thursday, 02 May 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.21"
let g:bufexplorer_version = "7.4.24"
" Plugin Code {{{1
" Check for Vim version {{{2
@ -132,6 +132,7 @@ let s:originBuffer = 0
let s:running = 0
let s:sort_by = ["number", "name", "fullpath", "mru", "extension"]
let s:splitMode = ""
let s:didSplit = 0
let s:types = {"fullname": ':p', "path": ':p:h', "relativename": ':~:.', "relativepath": ':~:.:h', "shortname": ':t'}
" Setup the autocommands that handle the MRUList and other stuff. {{{2
@ -312,7 +313,7 @@ endfunction
" ShouldIgnore {{{2
function! s:ShouldIgnore(buf)
" Ignore temporary buffers with buftype set.
if empty(getbufvar(a:buf, "&buftype") == 0)
if empty(getbufvar(a:buf, "&buftype")) == 0
return 1
endif
@ -361,6 +362,7 @@ function! s:Cleanup()
let s:running = 0
let s:splitMode = ""
let s:didSplit = 0
delmarks!
endfunction
@ -392,12 +394,14 @@ endfunction
function! BufExplorerHorizontalSplit()
let s:splitMode = "sp"
execute "BufExplorer"
let s:splitMode = ""
endfunction
" BufExplorerVerticalSplit {{{2
function! BufExplorerVerticalSplit()
let s:splitMode = "vsp"
execute "BufExplorer"
let s:splitMode = ""
endfunction
" ToggleBufExplorer {{{2
@ -451,6 +455,9 @@ function! BufExplorer()
" Restore the original settings.
let [&splitbelow, &splitright] = [_splitbelow, _splitright]
" Remember that a split was triggered
let s:didSplit = 1
endif
if !exists("b:displayMode") || b:displayMode != "winmanager"
@ -473,6 +480,7 @@ function! s:DisplayBufferList()
" the buffer using CTRL-^.
setlocal buftype=nofile
setlocal modifiable
setlocal noreadonly
setlocal noswapfile
setlocal nowrap
@ -1036,7 +1044,7 @@ function! s:Close()
endif
" If we needed to split the main window, close the split one.
if s:splitMode != "" && bufwinnr(s:originBuffer) != -1
if s:didSplit == 1 && bufwinnr(s:originBuffer) != -1
execute "wincmd c"
endif