milkypostman / vim-togglelist

Functions to toggle the [Location List] and the [Quickfix List] windows.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

togglelist.vim

A simple plugin for vim that allows you to bind a key to toggle the Location List and the Quickfix List. This plugin is currently in early development and there aren't many things besides a few options I imagine adding. Feel free to submit patches.

Installation

Basic Brute-Force Install

Copy togglelist.vim to your ~/.vim/plugin directory.

Pathogen

Checkout the github repository to the Pathogen directory.

cd ~/.vim/bundle
git clone https://github.com/milkypostman/vim-togglelist.git

Mappings

The default mappings are:

nmap <script> <silent> <leader>l :call ToggleLocationList()<CR>
nmap <script> <silent> <leader>q :call ToggleQuickfixList()<CR>

You can prevent these mappings by setting g:toggle_list_no_mappings in your .vimrc and then remap them if you want--both ToggleLocationList and ToggleQuickfixList are global functions. I imagine the names of the functions are self-explanatory.

After opening or closing either list, the previous window is restored so you can still use <C-w>p.

Customization

You can specify which command you want to use to open a quickfix list(in case you are using some plugin) like:

let g:toggle_list_copen_command="Copen"

About

Functions to toggle the [Location List] and the [Quickfix List] windows.


Languages

Language:Vim Script 100.0%