Ⅰ. 插件描述
toggle quickfix windowⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'drmingdrmer/vim-toggle-quickfix'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'drmingdrmer/vim-toggle-quickfix'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'drmingdrmer/vim-toggle-quickfix'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/drmingdrmer/vim-toggle-quickfix
Ⅳ. 文档说明
# Toggle Quickfix Window
quickfix is a special buffer for viewing errors and warnings from command:make or matching lines from vim plugin grep.
This plugin provides one simple key binding to toggle quickfix window
instead of using the redundant command :copen and :close.
Installation
Installing with pathogen.vim
is recommended. Copy and paste:
cd ~/.vim/bundle
git clone git://github.com/drmingdrmer/vim-toggle-quickfix.gitOr just copy all of the files in to ~/.vim.
Key Binding
To use Ctrl-g Ctrl-o to toggle quickfix and location list window,
add these following lines into your .vimrc:
nmap <C-g><C-o> <Plug>window:quickfix:loopThen <C-g><C-o> loops over these 3 state:
quickfix locationlist
-------- ------------
closed closed
<C-g><C-o> once open closed
<C-g><C-o> twice closed open
<C-g><C-o> three times closed closed
<C-g><C-o> forth times ...