• Stars
    star
    594
  • Rank 75,329 (Top 2 %)
  • Language
    Vim Script
  • License
    MIT License
  • Created over 9 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Tame the quickfix window.

vim-qf

vim-qfβ€”short for vim-quickfixβ€”is a growing collection of settings, commands and mappings put together to make working with the location list/window and the quickfix list/window smoother.

Features

Anti-features

Many plugins interact with the quickfix/location list/window in ways that are more or less incompatible with vim-qf. I have put considerable effort in making most vim-qf features optional so it should be possible to disable individual features in case of conflict but well… you never know.

If one of your plugins somehow already manages the quickfix/location list/window, then you should probably look elsewhere.

Global features (available from any window)

  • quickfix buffers are hidden from :ls and buffer navigation

  • quit Vim if the last window is a location/quickfix window

  • close the location window automatically when quitting parent window

  • (optional) mappings for :cnext, :cprevious, :lnext, :lprevious that wrap around the beginning and end of the list

  • (optional) mapping for jumping to and from the location/quickfix window,

  • (optional) mappings for toggling location/quickfix windows

  • (optional) open the location/quickfix window automatically after :make, :grep, :lvimgrep and friends if there are valid locations/errors

  • (optional) automatically set the height of location/quickfix windows to the number of list items if less than Vim's default height (10) or the user's prefered height

Local features (available only in location/quickfix windows)

  • disable relative numbers

  • filter and restore the current list:

    filter

  • perform commands on each line in the current list

  • perform commands on each file in the current list

  • jump to next group of entries belonging to same file ("file grouping"):

    group

  • save and load named lists:

    list

  • (optional) disable soft-wrapping

  • (optional) Ack.vim-inspired mappings

  • (optional) shorten filepaths for better legibility

Installation

Method 1

Use your favorite runtimepath/plugin manager.

Method 2

If you are using Vim 8.0 or above, move this directory to:

# Unix-like systems
~/.vim/pack/{whatever name you want}/start/vim-qf

# Windows
%userprofile%\vimfiles\pack\{whatever name you want}\start\vim-qf

See :help package.

Method 3

If you are using Vim 7.4 or below, move the files in this directory to their standard location:

# Unix-like systems
~/.vim/after/ftplugin/qf.vim
~/.vim/autoload/qf.vim
~/.vim/autoload/qf/*.vim
~/.vim/doc/qf.txt
~/.vim/plugin/qf.vim

# Windows
%userprofile%\vimfiles\after\ftplugin\qf.vim
%userprofile%\vimfiles\autoload\qf.vim
%userprofile%\vimfiles\autoload\qf\*.vim
%userprofile%\vimfiles\doc\qf.txt
%userprofile%\vimfiles\plugin\qf.vim

Documentation

You can use this command to get help on vim-qf:

:help vim-qf

TODO

  • Export more options?

  • Add titles to saved lists, e.g. to display in :ListLists?

DONE

  • Use <Plug> mappings.

  • Add proper attribution for a few features.

  • Write a proper help file.

  • Ask #vim's opinion.

  • Add a gifcast to the README.

  • Add :packadd support?

More Repositories

1

idiomatic-vimrc

Guidelines for sculpting your very own ~/.vimrc.
1,067
star
2

Apprentice

A dark, low-contrast, Vim colorscheme.
Vim Script
854
star
3

vim-cool

A very simple plugin that makes hlsearch more useful.
Vim Script
525
star
4

ctags-patterns-for-javascript

Exuberant Ctags Patterns for JavaScript
JavaScript
409
star
5

flattened

Solarized, without the bullshit.
Vim Script
396
star
6

vim-rnb

RNB, a Vim colorscheme template
HTML
138
star
7

the-patient-vimmer

A guide for patient Vimmers.
112
star
8

vim-dichromatic

A dark Vim colorscheme for color blind vimmers. But not only.
HTML
82
star
9

vim-qlist

Persist the results of :ilist and related commands via the quickfix list.
Vim Script
66
star
10

vim-devdocs

Look up keyword on https://devdocs.io from Vim
Vim Script
55
star
11

minivimrc

Vim Script
41
star
12

iterm2-colorschemes

A collection of iTerm2 colorschemes.
23
star
13

apprentice-colorschemes

Terminal emulator themes based on the Apprentice Vim colorscheme
Shell
17
star
14

vim-tinyMRU

Vim Script
15
star
15

Disciple

A light low-contrast Vim colorscheme.
Vim Script
12
star
16

nanovimrc

Smaller than mini, smaller than micro: nano.
Vim Script
10
star
17

vim-colors

Modern rewrite of Vim's default colorschemes.
HTML
7
star
18

microvimrc

Smaller than mini, bigger than nano: micro.
Vim Script
6
star
19

quickstart

Makefile
5
star
20

vim-quicklist

Persist the result of list-like Ex commands to the quickfix list.
Vim Script
3
star
21

vim-malotru

A relatively comfortable Vim colorscheme primarily designed for 16color terminal emulators
Vim Script
2
star
22

ctagsd

Run ctags upon file change/addition/deletion in a Git repository
Shell
2
star
23

vim-sweet16

A 'light' colorscheme using exclusively the lower 16 colors of the xterm palette.
HTML
1
star
24

lspc

A Language Server Protocol Client for Vim. Maybe.
1
star
25

acp-forked

A personal fork of an old version of AutoComplPop.
Vim Script
1
star