Ⅰ. 插件描述
automatically maps buffers to function keysⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/bufmap-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/bufmap-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/bufmap-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/bufmap.vim
Ⅳ. 文档说明
A script that automatically maps buffers to function keys.
Keys:
F<n>
Switch to window 1 through 12.
SHIFT-F<n>
Switch to window 13 through 24.
ALT-1 through ALT-0
Switch to window 1 through 10.
CTRL-W, F<n>
Swap the buffer in the current window with the one
in window n, and activate window n.
CTRL-W, SHIFT-F<n>
Swap the buffer in the current window with the one
in buffer n+12, and activate window n+12.
CTRL-W, ALT-<n>
Swap the buffer in the current window with the one
in window n, and activate window n.
CTRL-W, c
Close the current buffer. This does ":bdelete",
so it will not work when there are unsaved changes.
Use ":bd!" in this case if you want to discard them.
CTRL-W, .
Move buffers along to lower numbered windows
(useful after closing a buffer)
CTRL-W, /
List all Windows.