Skip to content

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

Notifications You must be signed in to change notification settings

milkypostman/vim-togglelist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published