All Projects → sandeepcr529 → Buffet.vim

sandeepcr529 / Buffet.vim

A vimplugin for switching and managing buffer lists

Labels

Projects that are alternatives of or similar to Buffet.vim

Vimenv
Configure Vim environment
Stars: ✭ 42 (-19.23%)
Mutual labels:  viml
Unite Colorscheme
A unite.vim plugin
Stars: ✭ 45 (-13.46%)
Mutual labels:  viml
Vimtips Fortune
A vimtips to fortune software.
Stars: ✭ 50 (-3.85%)
Mutual labels:  viml
One Dark.vim
A vim version of Atom's gorgeous one-dark color scheme
Stars: ✭ 43 (-17.31%)
Mutual labels:  viml
Arua Meta
Standards, RFCs and discussion of the Arua language
Stars: ✭ 45 (-13.46%)
Mutual labels:  viml
Vim Smartword
Vim plugin: Smart motions on words
Stars: ✭ 48 (-7.69%)
Mutual labels:  viml
Vim Hexedit
Hexedit is a plug-in under VIM, which is used to strengthen the hex editing ability of VIM.
Stars: ✭ 42 (-19.23%)
Mutual labels:  viml
Ctrlp Extensions.vim
Plugins for ctrlp.vim
Stars: ✭ 51 (-1.92%)
Mutual labels:  viml
Plaintasks.vim
An implementation of Sublime's PlainTasks plugin for Vim
Stars: ✭ 45 (-13.46%)
Mutual labels:  viml
Vim Seeing Is Believing
Stars: ✭ 50 (-3.85%)
Mutual labels:  viml
Vimrc
💺 Options for my preferred text editor.
Stars: ✭ 43 (-17.31%)
Mutual labels:  viml
Vim Grepper
👾 Helps you win at grep.
Stars: ✭ 1,030 (+1880.77%)
Mutual labels:  viml
Vim Js Indent
JavaScript indentation for VIM
Stars: ✭ 49 (-5.77%)
Mutual labels:  viml
Vim Textobj Lastpat
Vim plugin: Text objects for the last searched pattern
Stars: ✭ 42 (-19.23%)
Mutual labels:  viml
Vim Qargs
A Vim plugin that adds a :Qargs utility command, for populating the argument list from the files in the quickfix list.
Stars: ✭ 50 (-3.85%)
Mutual labels:  viml
Vimstuff
Various bits and pieces that work with Vim
Stars: ✭ 42 (-19.23%)
Mutual labels:  viml
Vim Debugger
🐾 Vim script debugger 🐛
Stars: ✭ 47 (-9.62%)
Mutual labels:  viml
Fmacvim
MacVim + essential plugins + my custom (and awesome) .vimrc
Stars: ✭ 52 (+0%)
Mutual labels:  viml
Vim Lookup
Jump to the definition of variables or functions in VimL code.
Stars: ✭ 51 (-1.92%)
Mutual labels:  viml
Cscope.vim
create cscope database and connect to existing proper database automatically.
Stars: ✭ 49 (-5.77%)
Mutual labels:  viml

Buffet is a plugin for the vim editor for listing and switching buffers, windows and tabs.(vim.org)

New in version 2.65.2

You can now use the '>' or the :Buffettogglesort command to switch between mru / alphabetical order

New in version 2.60(Screenshot)

  • Added two new keyboard commands to mark a buffer in the list of displayed Buffers.
  • Use 'm' to toggle mark on a single buffer, and 'M' to clear all the previously set marks.
  • The two new commands for this operation are 'Buffettogglemark' and 'Buffetclearmarks'

New in version 2.50

With this version you can format the display of buffer list using a callback function. Set the call back using the line in your vimrc

let g:Buffetbufferformatfunction = "s:callback"

You can replace s:callback with your callback function name. The call back function accept following parameters and must return a one dimensional list of columns. If empty list is returned, the entry is not displayed.

Parameters:

  • Buffer No, The buffer number

  • Tab No, Tab no where this buffer is displayed. Blank if it is not displayed in a tab.

  • Window No. Window no where this buffer is displayed. Blank if not displayed.

  • Source tab: The tab from which the bufet was invoked. This can be used to mark the current buffer in the list

  • Source window: Same as above, but from window.

  • Is parent. This is 1 if this is a first entry for a buffer in the list. If buffer is showing in multiple tabs and windows, those entries will have this value 0.

You can disable default maps if you set this line in vimrc

let g:buffetdisabledefaultmaps = 1

You can now set your own maps to the commands given below.

  • Buffetclosewindow - Close the corresponding window

  • BuffetclosewindowF - Close the window even if the contents are not saved

  • Buffetcleardiff - Clears diff flag of all displayed windows

  • Buffetdelete - Delete the selected buffer

  • Buffetdeletef - Delete the buffer even if contents are not saved

  • Buffetload - Load the selected buffer to current windows

  • Buffetloadonly - Load the selected buffer to current window and make it the only one displayed

  • Buffetgoto - Go to the selected tab/window/buffer

  • Buffetopentab - Open the selected buffer in a new tab

  • Buffetopenh - Open the buffer in a horizintal split

  • Buffetopenv - Open the buffer in a vertical split

  • Buffetrefresh - Refresh the buffer list.

  • Buffetdiffsplit - Open a diff window with difference between current buffer and selected buffer shown

  • Buffettoggledetail - Toggle detailed display of file path

  • Buffettogglemark - Toggle a mark on a buffer

  • Buffetclearmarks - Clear all marks set on the buffers

New in version 2.10(Screenshot)

  • Layout change for buffer list.Made columns to correctly align on top of each other.
  • Removed the highlight for current window/buffer. Current window is enclosed in a > < instead.(Screenshot)
  • Made a shorter version of path to show initially, Can toggle detail view using 'm' key.

In version 2.0

  • Added support for multiple windows showing same buffer.
  • Removed file type and file encoding information from buffer list.
  • Fixed an issue when vim is invoked from command line with multiple arguments
  • Added 'x' command to close a window in what ever tab it is displayed.
  • Changed the 'h' command to 'hh' to prevent accidental opening when moving across the list.

Screenshot: http://i43.tinypic.com/33kadsx.png

The plugin exports two command Bufferlist and Bufferlistsw.

Commands for invoking this plugin.

:Bufferlist - Opens the buffer list window at the very top with maximum width.

:Bufferlistsw - Opens the buffer list window at the top of the current window, with same width as that of current window.

When the plugin is invoked, it opens a horizontal window at the top. This window contains a list of buffers, sorted in the most recently used order. The cursor is placed on the line of the buffer that user accessed before the current buffer. This is to make switching between two buffers very fast.

If a buffer is displayed in more than one window, those windows are listed below the buffer entry with tab number and window number.

The window and tab from which the plugins was invoked is shown enclosed in a pair of > ... <

Please see screenshot

User can move up or down in the list using navigation keys to select a buffer/window.

When user is on a buffer/window, there is a set of commands he can execute on the buffer by pressing the corresponding key. The available commands are,

Enter(Replace current buffer)

Pressing the enter key loads the selected buffer into the window from which the plugin was called.

hh (Was originally h,changed to hh in version 2)

Splits the window from which the plugin was invoked horizontally , and loads the selected buffer into the new window.

v

Splits the window from which the plugin was invoked vertically, and loads the selected buffer into the new window.

-

Loads a diff view of the selected buffer with the buffer from which the plugin was called. The two windows will be scroll binded.

c

The above - command may cause some windows to retain the diff flag even after the paired window is closed. The 'c'
command clears the diff flag for all windows in the current tab.

o

This command maximizes the window to fill the current tab page, hiding all the windows of the current tab.

g

This command switches focus to the selected window if it is visible in any of the tabs. This is different from the 'enter' command in the sense that it does not loads the contents of the buffer into the current window. If a buffer is being displayed in more than a window, then all those windows will be represented by the lines under the entry for that buffer. Executing the g command on those entries switches the user to the corresponding window and tab.

d

This command deletes the selected buffer from the buffer list. Buffer list window is not closed.

x

This command closes the selected window. It does not matter if the window is open in another tab. Buffer is not removed from the list. The buffer list window remains open. With this you can use the buffer list window as a remote control to navigate to or close any window in any tab.

a

Toggles the detailed view for file paths.

m

Toggles a mark on the buffer

M

Clears all marks set on the buffers

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].