Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

adds option to turn off showing buf numbers #11

Merged
merged 1 commit into from

2 participants

@jmatraszek

Just like in my previous pull request, but this time in development branch and without messing with the trailing spaces. :)
Greetings,
kuba

@fholgado
Owner

Thanks so much! I will get it merged in shortly.

@fholgado fholgado merged commit 887fda0 into from
@jmatraszek

this actually breaks a lot of stuff, so it should be reverted, as i dont know how to work this around. :(

@fholgado fholgado was assigned
@lawm lawm referenced this pull request from a commit in lawm/minibufexpl.vim
@lawm lawm fix vim quitting on :bd
disables quit if mbe is last window feature on vim version < 7.3.544
see issue #11
46ea00a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 18, 2011
  1. @jmatraszek
This page is out of date. Refresh to see the latest.
Showing with 15 additions and 2 deletions.
  1. +15 −2 plugin/minibufexpl.vim
View
17 plugin/minibufexpl.vim
@@ -474,6 +474,15 @@ if !exists('g:miniBufExplTabWrap')
endif
" }}}
+" ShowBufNumber? {{{
+" By default buffers' numbers are shown in MiniBufExplorer. You can turn it off
+" by setting this option to 0.
+"
+if !exists('g:miniBufExplShowBufNumbers')
+ let g:miniBufExplShowBufNumbers = 1
+endif
+
+" }}}
" Extended window navigation commands? {{{
" Global flag to turn extended window navigation commands on or off
" enabled = 1, dissabled = 0
@@ -1327,7 +1336,11 @@ function! <SID>BuildBufferList(delBufNum, updateBufList, currBufName)
" Establish the tab's content, including the differentiating root
" dir if neccessary
- let l:tab = '['.l:i.':'.s:bufPathPrefix.l:bufSplitPath[-1].']'
+ let l:tab = '['
+ if g:miniBufExplShowBufNumbers == 1
+ let l:tab = l:tab .l:i.':'
+ endif
+ let l:tab = l:tab .s:bufPathPrefix.l:bufSplitPath[-1].']'
" If the buffer is open in a window mark it
if bufwinnr(l:i) != -1
@@ -2211,7 +2224,7 @@ endfunc " }}}
" opened again unless you do a \mbe (or restart VIM).
" o Removed spaces between "tabs" (even more mini :)
" o Simplified MBE tab processing
-" 6.0.6 o Fixed register overwrite bug found by Sébastien Pierre
+" 6.0.6 o Fixed register overwrite bug found by S?bastien Pierre
" 6.0.5 o Fixed an issue with window sizing when we run out of
" buffers.
" o Fixed some weird commenting bugs.
Something went wrong with that request. Please try again.