Skip to content
Browse files

Version 7.0.7

Thanks to Jeremy Cowgar for adding a new enhancement. This enhancement allows the user to press 'S', that is capital S, which will open the buffer under the cursor in a newly created split window.
  • Loading branch information...
1 parent 6fca512 commit 8e3ef4ba368d9e728f8ad60bb9cb0b74a58fbeb1 jeff lanzarotta committed with Dec 19, 2005
Showing with 19 additions and 5 deletions.
  1. +8 −2 doc/bufexplorer.txt
  2. +11 −3 plugin/bufexplorer.vim
View
10 doc/bufexplorer.txt
@@ -1,7 +1,7 @@
-*bufexplorer.txt* Buffer Explorer Last Change: 18 Nov 2005
+*bufexplorer.txt* Buffer Explorer Last Change: 19 Dec 2005
Buffer Explorer *buffer-explorer* *bufexplorer*
- Version 7.0.6
+ Version 7.0.7
Plugin for easily exploring (or browsing) open buffers
@@ -33,6 +33,8 @@ Command to use once exploring:
<cr> or Opens the buffer that is under the cursor into the current
<leftmouse> window.
+ S Opens the buffer that is under the cursor into a newly split
+ window.
d Deletes the buffer from the list that is under the cursor.
o Toggles open mode. Only available in 'split mode'.
p Toggles the showing of a split filename/pathname.
@@ -131,6 +133,10 @@ Note: This is only available when using vim 7.0 and above.
===============================================================================
CHANGE LOG *bufexplorer-changelog*
+7.0.7 - Thanks to Jeremy Cowgar for adding a new enhancement. This
+ enhancement allows the user to press 'S', that is capital S, which
+ will open the buffer under the cursor in a newly created split
+ window.
7.0.6 - Thanks to Larry Zhang for finding a bug in the "split" buffer code.
If you force set g:bufExplorerSplitType='v' in your vimrc, and if you
tried to do a \bs to split the bufexplorer window, it would always
View
14 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: Friday, 18 November 2005
+" Last Changed: Monday, 19 December 2005
" Version: See g:loaded_bufexplorer for version number.
" Usage: Normally, this file should reside in the plugins
" directory and be automatically sourced. If not, you must
@@ -39,7 +39,7 @@ if exists("g:loaded_bufexplorer") || &cp
endif
" Version number.
-let g:loaded_bufexplorer = "7.0.6"
+let g:loaded_bufexplorer = "7.0.7"
" Setup the global MRUList.
let g:MRUList = ","
@@ -328,6 +328,7 @@ function! <SID>MapKeys()
nnoremap <buffer> <silent> ? :call <SID>ToggleHelp()<cr>
nnoremap <buffer> <silent> <2-leftmouse> :call <SID>SelectBuffer(0)<cr>
nnoremap <buffer> <silent> <cr> :call <SID>SelectBuffer(0)<cr>
+ nnoremap <buffer> <silent> S :call <SID>SelectBuffer(1)<cr>
nnoremap <buffer> <silent> d :call <SID>DeleteBuffer()<cr>
if s:bufExplorerSplitWindow == 1
@@ -405,6 +406,7 @@ function! <SID>AddHeader()
let header = "\" Buffer Explorer (".g:loaded_bufexplorer.")\n"
let header = header."\" --------------------------\n"
let header = header."\" <enter> or Mouse-Double-Click : open buffer under cursor\n"
+ let header = header."\" S : open buffer under cursor in new split window\n"
let header = header."\" d : delete buffer\n"
if s:bufExplorerSplitWindow == 1
@@ -617,7 +619,13 @@ function! <SID>SelectBuffer(...)
exe "silent! b! " . s:curBufNbr
endif
- exe "b! " . _bufNbr
+ " If we are doing a 'normal' SelectBuffer, 0 was passed in. If '1'
+ " is passed in, the user has choosen to do a 'Split Select'.
+ if a:1 != 1
+ exe "b! " . _bufNbr
+ else
+ exe "silent! ".g:bufExplorerSplitType."sb "._bufNbr
+ endif
call <SID>MRUPush()
else

0 comments on commit 8e3ef4b

Please sign in to comment.
Something went wrong with that request. Please try again.