Skip to content

Termplexed/BBUF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

~ BBUF ~

     @@@@@@@   @@@@@@@   @@@  @@@  @@@@@@@@
     @@@@@@@@  @@@@@@@@  @@@  @@@  @@@@@@@@
@@!  @@@  @@!  @@@  @@!  @@@  @@!
!@   @!@  !@   @!@  !@!  @!@  !@!
    @!@!@!@   @!@!@!@   @!@  !@!  @!!!:!
    !!!@!!!!  !!!@!!!!  !@!  !!!  !!!!!:
!!:  !!!  !!:  !!!  !!:  !!!  !!:
:!:  !:!  :!:  !:!  :!:  !:!  :!:
:: ::::   :: ::::  ::::: ::   ::
:: : ::   :: : ::    : :  :    :
_^0_o^__

A Vim plugin to render help when working with collection / sets of buffers.

Say you have 40 buffers open and want to work with more then two and not want to keep entering buffer numbers ...

Use BBUF and create a collection of say buffers 3, 6, 11 and 24 and user key-shortcuts to cycle this list.

You can create multiple buffer collections and give them different names. For example:

foo: Has buffers 3, 6, 12
bar: Has buffers 3, 9, 13
baz: Has buffers 1, 16, 12, 3, 5
etc.

Simplest - Typically:

:BBload  " to load the BBUF plugin
:BBhelp  " quick help
:BB<TAB> " list functions

Then do for example:

:BBset 1 3 6
" or
:BBset *.js 12
" etc.
Ctrl + Shift + ArrowUp   : add current buffer from current collection
Ctrl + Shift + ArrowDown : remove current buffer from current collection

Then use keyboard mappings to navigate it. I.e.

Go to previous buffer in list: Ctrl+Shift+Left

List buffers :BBls

etc.


It keeps, updates and use a dictionary of buffer lists.

 {
     default:   [1, 3 ,6],
     some_list: [1, 8 , 12],
     another:   [17, 4, 19]
 }

See doc/BBUF.txt for full help.

https://github.com/Termplexed/BBUF/blob/master/doc/BBUF.txt