switch buffer quickly


Ⅰ. 插件描述

A simple way to switch buffer quickly

Ⅱ. 基本信息

创建日期:  2012-01-18
使用用户:  1
Github星:  1
插件作者:  dong hongbo

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/switch-buffer-quickly

Ⅳ. 文档说明

A simple way to switch buffer quickly .

it may be very helpful if you often need to switch buffer in a lot of buffers.

  1. basic usage

:e a.txt
:w
za

:e b.txt
:w
za

:e c.txt
:w
za

press <c-j> or <c-k> then you can switch buffer in the list that contain a.txt , b.txt , c.txt.

  1. group the buffer list

when you open a new tab page , you will switch to another group automatic , the number of group is the number of tab page number . that mean you can manage multiple buffer list

  1. edit your .vimrc like this:

nnoremap za :call SBQ_PushBuffer()<cr>                     # add current buffer to buffer list
nnoremap zd :call SBQ_PopBuffer()<cr>                      # delete current buffer from buffer list
nnoremap zs :call SBQ_ShowBufferList()<cr>                 # show the list of buffer list
nnoremap <c-j> :call SBQ_SelectBuffer(1)<cr>               # switch buffer
nnoremap <c-k> :call SBQ_SelectBuffer(2)<cr>               # switch buffer

添加新评论