All Projects β†’ bsdelf β†’ Bufferhint

bsdelf / Bufferhint

Licence: bsd-2-clause
Handy buffer switcher for Vim

Projects that are alternatives of or similar to Bufferhint

Vim Buffet
IDE-like Vim tabline
Stars: ✭ 304 (+484.62%)
Mutual labels:  buffer, vim-plugin
Vim Grepper
πŸ‘Ύ Helps you win at grep.
Stars: ✭ 1,030 (+1880.77%)
Mutual labels:  vim-plugin
Vimrc
πŸ“ Vim Configuration for nerds with vim-plug
Stars: ✭ 33 (-36.54%)
Mutual labels:  vim-plugin
Incsearch.vim
πŸ”¦ Improved incremental searching for Vim
Stars: ✭ 1,009 (+1840.38%)
Mutual labels:  vim-plugin
Notational Fzf Vim
Notational velocity for vim.
Stars: ✭ 975 (+1775%)
Mutual labels:  vim-plugin
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:  vim-plugin
Vim Foldfocus
βœ‚οΈ A vim plugin for isolating a particular piece of text into its own separated context.
Stars: ✭ 30 (-42.31%)
Mutual labels:  vim-plugin
Dhall Vim
Syntax highlighting for Dhall
Stars: ✭ 51 (-1.92%)
Mutual labels:  vim-plugin
Circular
An open source Buffer app clone
Stars: ✭ 1,030 (+1880.77%)
Mutual labels:  buffer
Plugpac.vim
Thin wrapper of minpac, provides vim-plug-like experience
Stars: ✭ 40 (-23.08%)
Mutual labels:  vim-plugin
Tika Python
Tika-Python is a Python binding to the Apache Tikaβ„’ REST services allowing Tika to be called natively in the Python community.
Stars: ✭ 997 (+1817.31%)
Mutual labels:  buffer
Futures Batch
An adapter for futures, which chunks up elements and flushes them after a timeout, or when the buffer is full. (Formerly known as tokio-batch.)
Stars: ✭ 37 (-28.85%)
Mutual labels:  buffer
Vim Outdated Plugins
πŸ”„ Async Vim/Neovim plugin for showing the number of your outdated plugins
Stars: ✭ 44 (-15.38%)
Mutual labels:  vim-plugin
Tskeleton vim
File Templates and Code Skeletons/Snippets for VIM
Stars: ✭ 33 (-36.54%)
Mutual labels:  vim-plugin
Vim Scrollstatus
A Vim plugin to display a scrollbar in the statusline
Stars: ✭ 46 (-11.54%)
Mutual labels:  vim-plugin
Hot Reload.vim
A (Neo)vim plugin for Flutter to automatically hot reload the project every time a file is saved
Stars: ✭ 33 (-36.54%)
Mutual labels:  vim-plugin
Zepl.vim
Lightweight and easy REPL integration for Vim and Neovim.
Stars: ✭ 39 (-25%)
Mutual labels:  vim-plugin
Easytree.vim
easytree.vim - tree file manager
Stars: ✭ 41 (-21.15%)
Mutual labels:  vim-plugin
Vim Lookup
Jump to the definition of variables or functions in VimL code.
Stars: ✭ 51 (-1.92%)
Mutual labels:  vim-plugin
Vim Codelf
(Neo)Vim plugin for searching variable names
Stars: ✭ 47 (-9.62%)
Mutual labels:  vim-plugin

Buffer Hint

bufferhint is a handly buffer switcher for Vim.

With this plugin, you can browse all buffers in a popup side window.

In addition, this plugin provides a "hint key" for each buffer, just like what Vimperator/Vimium/VimFx does.

Therefore, you can switch among buffers quickly with a single key stroke in the best case.

Installtion

Manually

cp bufferhint.vim ~/.vim/plugin/

Pathogen

cd ~/.vim/bundle
git clone https://github.com/bsdelf/bufferhint.git

Configuration

Add following two lines in ~/.vimrc:

nnoremap - :call bufferhint#Popup()
nnoremap \ :call bufferhint#LoadPrevious()

Usage

Basic usage

  1. vim foo.txt bar.txt doe.txt.
  2. Type - to popup bufferhint window.
  3. Type j, k, C-f, C-b, PGUP, PGDN to navigate.
  4. Type ENTER to load the buffer under cursor.

Load buffer by hint

  1. vim foo.txt bar.txt doe.txt.
  2. Type - to popup bufferhint window.
  3. Type b to load "bar.txt".
  4. Type \ to load the previous buffer namely "foo.txt".

Switch sort mode

  1. Type - to popup bufferhint window.
  2. Type SPACE to switch sort mode.

Delete buffers

  1. vim foo.txt bar.txt doe.txt.
  2. Type - to popup bufferhint window.
  3. Type dd to delete the buffer under cursor.
  4. Type db to delete a buffer by hint.

Notes

  • Yellow hints means the buffers are sorted by path, green hints means the buffers are sorted by LRU.
  • You can also type / in bufferhint window and search what you want, then type ENTER to load it.
  • Apparently j/k/d/n/N are excluded from the hint chars.

Functions

  • bufferhint#Popup()

    Toggle bufferhint window.

  • bufferhint#LoadPrevious()

    Load the second item in LRU. It's very useful in the scene where you want to switch back and forth between two files.

  • bufferhint#Save()

    Save current session to an external session file which can be restored by vim -S command in the future. The default session file name is "session.vim".

Preference

  • g:bufferhint_SortMode

    Default sort mode.

    • 0: sort by path
    • 1: sort by LRU
  • g:bufferhint_MaxWidth

    Maxmium window width.

  • g:bufferhint_PageStep

    Page step, will affect PGUP, PGDN, C-f, C-b.

  • g:bufferhint_SessionFile

    The default session file name.

  • g:bufferhint_KeepWindow

    Set to 1 to keep window open after buffer deleting.

Screenshot

bufferhint

One More Thing

If you like this plugin, please rate it here!

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].