Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Version 7.2.5

Philip Morant suggested switching the command (bwipe) associated with the 'd' key with the command (bdelete) associated with the 'D' key. This made sense since the 'd' key is more likely to be used compared to the 'D' key.
  • Loading branch information...
commit 7ab96f3bc89b68e8b8b018754178977c675ffeca 1 parent 9218e47
jeff lanzarotta authored committed
Showing with 26 additions and 11 deletions.
  1. +9 −4 doc/bufexplorer.txt
  2. +17 −7 plugin/bufexplorer.vim
View
13 doc/bufexplorer.txt
@@ -1,7 +1,7 @@
-*bufexplorer.txt* Buffer Explorer Last Change: 06 Jan 2010
+*bufexplorer.txt* Buffer Explorer Last Change: 02 Feb 2010
Buffer Explorer *buffer-explorer* *bufexplorer*
- Version 7.2.4
+ Version 7.2.5
Plugin for easily exploring (or browsing) Vim |:buffers|.
@@ -58,12 +58,12 @@ Commands to use once exploring:
<leftmouse> Opens the buffer that is under the cursor into the current
window.
<shift-enter> Opens the buffer that is under the cursor in another tab.
- D |:delete|the buffer under the cursor from the list. The
+ d |:delete|the buffer under the cursor from the list. The
buffer's 'buflisted' is cleared. This allows for the buffer to
be displayed again using the 'show unlisted' command.
R Toggles relative path/absolute path.
T Toggles to show only buffers for this tab or not.
- d |:wipeout|the buffer under the cursor from the list. When a
+ D |:wipeout|the buffer under the cursor from the list. When a
buffers is wiped, it will not be shown when unlisted buffer are
displayed.
f Toggles whether you are taken to the active window when
@@ -191,6 +191,11 @@ The default is not to show.
===============================================================================
CHANGE LOG *bufexplorer-changelog*
+7.2.5 - Fix:
+ * Philip Morant suggested switching the command (bwipe) associated
+ with the 'd' key with the command (bdelete) associated with the 'D'
+ key. This made sense since the 'd' key is more likely to be used
+ compared to the 'D' key.
7.2.4 - Fix:
* I did not implement the patch provided by Godefroid Chapelle
correctly. I missed one line which happened to be the most
View
24 plugin/bufexplorer.vim
@@ -10,7 +10,7 @@
" Name Of File: bufexplorer.vim
" Description: Buffer Explorer Vim Plugin
" Maintainer: Jeff Lanzarotta (delux256-vim at yahoo dot com)
-" Last Changed: Wednesday, 06 Jan 2010
+" Last Changed: Tuesday, 02 Feb 2010
" Version: See g:bufexplorer_version for version number.
" Usage: This file should reside in the plugin directory and be
" automatically sourced.
@@ -38,7 +38,7 @@ endif
"1}}}
" Version number
-let g:bufexplorer_version = "7.2.4"
+let g:bufexplorer_version = "7.2.5"
" Check for Vim version 700 or greater {{{1
if v:version < 700
@@ -225,8 +225,10 @@ endfunction
function! s:BEDeactivateBuffer(remove)
let _bufnr = str2nr(expand("<abuf>"))
+ call s:BEMRUPop(_bufnr)
+
if a:remove
- call s:BEMRUPop(_bufnr)
+"XXX moved above call s:BEMRUPop(_bufnr)
call s:BEDeleteBufferListing(_bufnr)
else
if ! s:BEIgnoreBuffer(_bufnr) == 1
@@ -434,10 +436,17 @@ function! s:BEMapKeys()
nnoremap <buffer> <silent> o :call <SID>BESelectBuffer()<cr>
nnoremap <buffer> <silent> t :call <SID>BESelectBuffer("tab")<cr>
nnoremap <buffer> <silent> <s-cr> :call <SID>BESelectBuffer("tab")<cr>
- nnoremap <buffer> <silent> d :call <SID>BERemoveBuffer("wipe", "n")<cr>
- xnoremap <buffer> <silent> d :call <SID>BERemoveBuffer("wipe", "v")<cr>
- nnoremap <buffer> <silent> D :call <SID>BERemoveBuffer("delete", "n")<cr>
- xnoremap <buffer> <silent> D :call <SID>BERemoveBuffer("delete", "v")<cr>
+
+ nnoremap <buffer> <silent> d :call <SID>BERemoveBuffer("delete", "n")<cr>
+ xnoremap <buffer> <silent> d :call <SID>BERemoveBuffer("delete", "v")<cr>
+ nnoremap <buffer> <silent> D :call <SID>BERemoveBuffer("wipe", "n")<cr>
+ xnoremap <buffer> <silent> D :call <SID>BERemoveBuffer("wipe", "v")<cr>
+
+"XXX nnoremap <buffer> <silent> d :call <SID>BERemoveBuffer("wipe", "n")<cr>
+"XXX xnoremap <buffer> <silent> d :call <SID>BERemoveBuffer("wipe", "v")<cr>
+"XXX nnoremap <buffer> <silent> D :call <SID>BERemoveBuffer("delete", "n")<cr>
+"XXX xnoremap <buffer> <silent> D :call <SID>BERemoveBuffer("delete", "v")<cr>
+
nnoremap <buffer> <silent> m :call <SID>BEMRUListShow()<cr>
nnoremap <buffer> <silent> p :call <SID>BEToggleSplitOutPathName()<cr>
nnoremap <buffer> <silent> q :call <SID>BEClose()<cr>
@@ -849,6 +858,7 @@ function! s:BEDeleteBuffer(bufNbr, mode)
" \(10\|20\) - either a 10 or a 20
" \> - end of word (so it can't make 100 or 201)
exec 'silent! g/^\s*\('.substitute(a:bufNbr, ' ', '\\|', 'g').'\)\>/d_'
+
setlocal nomodifiable
call s:BEDeleteBufferListing(a:bufNbr)
Please sign in to comment.
Something went wrong with that request. Please try again.