Git Product home page Git Product logo

vim-qftoggle's Introduction

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)

vim-qftoggle's People

Contributors

seandewar avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.