/vim-toggle-quickfix

toggle quickfix window

Primary LanguageVim Script

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

Or 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:loop

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