Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Commits on Dec 25, 2012
jeff lanzarotta Version 7.3.1
Thanks go out to Brett Rasmussen for pointing out that the feature added way back in version 7.2.3 by Yuriy Ershov to automatically reposition the cursor to the line containing the active buffer, was no longer in the plugin.  That bit of code has been re-added and all is well.
28b30ac
jeff lanzarotta Version 7.2.3@1
Thanks go out to Michael Henry for pointing out that I completely missed yet another function, ReverseSortSelect(), during the refactoring.  This function has now returned.
2583131
Showing with 28 additions and 4 deletions.
  1. +12 −2 doc/bufexplorer.txt
  2. +16 −2 plugin/bufexplorer.vim
View
14 doc/bufexplorer.txt
@@ -1,7 +1,7 @@
-*bufexplorer.txt* Buffer Explorer Last Change: 09 Oct 2012
+*bufexplorer.txt* Buffer Explorer Last Change: 23 Dec 2012
Buffer Explorer *buffer-explorer* *bufexplorer*
- Version 7.3.0
+ Version 7.3.2
Plugin for easily exploring (or browsing) Vim |:buffers|.
@@ -213,6 +213,16 @@ The default is to use the global &splitright.
===============================================================================
CHANGE LOG *bufexplorer-changelog*
+7.3.2 - Fix:
+ * Thanks go out to Michael Henry for pointing out that I completely
+ missed yet another function, ReverseSortSelect(), during the
+ refactoring. This function has now returned.
+7.3.1 - Fix:
+ * Thanks go out to Brett Rasmussen for pointing out that the feature
+ added way back in version 7.2.3 by Yuriy Ershov to automatically
+ reposition the cursor to the line containing the active buffer, was
+ no longer in the plugin. That bit of code has been re-added and
+ all is well.
7.3.0 - It has been quite a while since I published a new version and this
is the first version since Vim 7.3 was released.
* Thanks to Tim Johnson for testing out this new version.
View
18 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: Tuesday, 09 Oct 2012
+" Last Changed: Sunday, 23 Dec 2012
" Version: See g:bufexplorer_version for version number.
" Usage: This file should reside in the plugin directory and be
" automatically sourced.
@@ -38,6 +38,7 @@
" History: See supplied documentation.
" Issues: 'D' and 'd' remove the buffer from the list but the list is not
" displayed correctly.
+" - Add ability to open a buffer in a new split when \be is used.
"=============================================================================
" Plugin Code {{{1
@@ -48,7 +49,7 @@ endif
"2}}}
" Version number
-let g:bufexplorer_version = "7.3.0"
+let g:bufexplorer_version = "7.3.2"
" Check for Vim version {{{2
if v:version < 700
@@ -391,6 +392,11 @@ function! BufExplorer(open)
endif
call s:DisplayBufferList()
+
+ " Position the cursor in the newly displayed list on the line representing
+ " the active buffer. The active buffer is the line with the '%' character
+ " in it.
+ execute search("%")
endfunction
" DisplayBufferList {{{2
@@ -830,12 +836,14 @@ endfunction
function! s:DeleteBuffer(buf, mode)
" This routine assumes that the buffer to be removed is on the current line.
try
+ " Wipe/Delete buffer from Vim.
if a:mode == "wipe"
exe "silent bwipe" a:buf
else
exe "silent bdelete" a:buf
endif
+ " Delete the buffer from the list on screen.
setlocal modifiable
normal! "_dd
setlocal nomodifiable
@@ -961,6 +969,12 @@ function! s:SortSelect()
call s:ReSortListing()
endfunction
+" ReverseSortSelect {{{2
+function! s:ReverseSortSelect()
+ let g:bufExplorerSortBy = get(s:sort_by, index(s:sort_by, g:bufExplorerSortBy) - 1, s:sort_by[-1])
+ call s:ReSortListing()
+endfunction
+
" ReSortListing {{{2
function! s:ReSortListing()
setlocal modifiable

No commit comments for this range

Something went wrong with that request. Please try again.