Skip to content
This repository has been archived by the owner on Jun 3, 2022. It is now read-only.
/ vim-qftoggle Public archive

Vim/Neovim plugin for toggling the QuickFix and Location lists, with wrapping replacements for :cnext and friends.

License

Notifications You must be signed in to change notification settings

seandewar/vim-qftoggle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vim-qftoggle

qftoggle is a minimalistic plugin that allows you to toggle Vim/Neovim's QuickFix and Location List windows. It also provides replacements for Vim's :cnext-related commands that wrap to the other side of the error lists when trying to move past either ends of the lists.

Installation

qftoggle can be installed like any other typical plugin. For example, using the plugin manager vim-plug:

Plug 'seandewar/vim-qftoggle'

Or by simply using Vim 8's packages feature (:help packages):

packadd vim-qftoggle

Commands

qftoggle defines the following commands:

  • :Ctoggle for toggling the QuickFix list window.
    Optionally accepts a command modifier, e.g: :botright Ctoggle.
  • :Ltoggle; behaves as above, but for the Location list of the current window.
  • :Cnext, :Cprevious, and :CNext; like Vim's :cnext, :cprevious, and :cNext commands, but can wrap around each end of the QuickFix list.
    Optionally accepts a count argument for repeating, e.g: :5Cnext.
  • :Lnext, :Lprevious, and :LNext; behaves as above, but for the Location list of the current window.

Mappings

In addition to these commands, qftoggle provides normal mode mappings for use in your configurations. These plugin mappings are not automatically mapped to any keys for you; you can map them to keys yourself by placing the following in your vimrc, for example:

nmap <Leader>c <Plug>(qftoggle_toggle_quickfix)
nmap <Leader>l <Plug>(qftoggle_toggle_loclist)

nmap ]c <Plug>(qftoggle_quickfix_next)
nmap [c <Plug>(qftoggle_quickfix_previous)
nmap ]l <Plug>(qftoggle_loclist_next)
nmap [l <Plug>(qftoggle_loclist_previous)

About

Vim/Neovim plugin for toggling the QuickFix and Location lists, with wrapping replacements for :cnext and friends.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published