tselectbuffer


Ⅰ. 插件描述

A quick buffer selector/switcher for vim

Ⅱ. 基本信息

创建日期:  2007-04-18
使用用户:  12
Github星:  4
插件作者:  Tom Link

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'tomtom/tselectbuffer'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'tomtom/tselectbuffer'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'tomtom/tselectbuffer'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/tomtom/tselectbuffer_vim

Ⅳ. 文档说明

This plugin provides a simple buffer selector. It doesn't have all the
features other buffer selectors have but can be useful for quickly
switching to a different buffer or for deleting buffers.

The idea is to view the buffer list, to do something, and to close the
buffer list. If you really want to permanently watch the buffer list to
see whether it's changed, you might want to use a different plugin.

Features:

- list buffers, dynamically filter buffers matching a pattern
- switch to a buffer
- rename a buffer (you may need to use :saveas! or :w! when writing 
the renamed buffer to disk)
- delete one or more buffer(s)

:[N]TSelectBuffer[!]

List buffers. With a count or a !, show also hidden buffers.
Keys:
<cr>  ... Select (close the buffer list)
<c-s> ... Open in split window
<c-v> ... Open in vertically split window
<c-t> ... Open in new tab
<c-w> ... Show in original window (continue with the buffer list)
<c-d> ... Delete a buffer
<c-u> ... Rename a buffer
<     ... Jump to opened buffer in window/tab

Suggested keymaps (put something like this into ~/.vimrc):

noremap <m-b> :TSelectBuffer<cr>
inoremap <m-b> <c-o>:TSelectBuffer<cr>

Install~

Edit the vba file and type: >

:so %

See :help vimball for details. If you have difficulties or use vim 7.0,
please make sure, you have the current version of vimball
(vimscript #1502) installed or update your runtime.

Also available via git: http://github.com/tomtom/tselectbuffer_vim/

Dependencies:
tlib (>= 1.27) :: http://github.com/tomtom/tlib_vim

License: GPLv3 or later

添加新评论