-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- '{' and '}' added to jump to next file grouping - ':Keep' added - ':Reject' added - ':Find' is on its way to deprecation
- Loading branch information
Showing
3 changed files
with
12 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
" vim-qf - Tame the quickfix window | ||
" Maintainer: romainl <[email protected]> | ||
" Version: 0.0.6 | ||
" Version: 0.0.7 | ||
" License: Vim License (see :help license) | ||
" Location: after/ftplugin/qf.vim | ||
" Website: https://github.com/romainl/vim-qf | ||
|
@@ -17,10 +17,12 @@ let b:undo_ftplugin = "setl fo< com< ofu<" | |
|
||
" text wrapping is pretty much useless in the quickfix window | ||
setlocal nowrap | ||
|
||
" relative line numbers don't make much sense either | ||
" but absolute numbers do | ||
setlocal norelativenumber | ||
setlocal number | ||
|
||
" we don't want quickfix buffers to pop up when doing :bn or :bp | ||
set nobuflisted | ||
|
||
|
@@ -55,8 +57,10 @@ if exists("g:qf_mapping_ack_style") | |
endif | ||
|
||
" filter the location/quickfix list | ||
" (kept for backward compatibility) | ||
" usage: | ||
" :Filter foo | ||
" :Filter foo <-- same as :Keep foo | ||
" :Filter! foo <-- same as :Reject foo | ||
command! -buffer -nargs=1 -bang Filter call qf#FilterList(<q-args>, expand("<bang>") == "!" ? 1 : 0) | ||
|
||
" keep entries matching the argument | ||
|
@@ -84,13 +88,13 @@ command! -buffer -nargs=1 Doline call qf#DoList(1, <q-args>) | |
" :Dofile %s/^/--- | ||
command! -buffer -nargs=1 Dofile call qf#DoList(0, <q-args>) | ||
|
||
" experimental feature | ||
" TODO: allow customization | ||
" jump to previous/next file grouping | ||
nnoremap <silent> <buffer> } :call qf#NextFile()<CR> | ||
nnoremap <silent> <buffer> { :call qf#PreviousFile()<CR> | ||
" quit Vim if the last window is a quickfix window | ||
autocmd qf BufEnter <buffer> if winnr('$') < 2 | q | endif | ||
autocmd qf BufEnter <buffer> if winnr('$') < 2 | q | endif | ||
autocmd qf BufWinEnter <buffer> call qf#ReuseTitle() | ||
|
||
let &cpo = s:save_cpo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
" vim-qf - Tame the quickfix window | ||
" Maintainer: romainl <[email protected]> | ||
" Version: 0.0.6 | ||
" Version: 0.0.7 | ||
" License: Vim License (see :help license) | ||
" Location: autoload/qf.vim | ||
" Website: https://github.com/romainl/vim-qf | ||
|
@@ -13,8 +13,7 @@ | |
let s:save_cpo = &cpo | ||
set cpo&vim | ||
|
||
" experimental feature | ||
" jump to previous/next file chunk | ||
" jump to previous/next file grouping | ||
function qf#GetFilePath(line) abort | ||
return substitute(a:line, '|.*$', '', '') | ||
" | | +- no flags | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
" vim-qf - Tame the quickfix window | ||
" Maintainer: romainl <[email protected]> | ||
" Version: 0.0.6 | ||
" Version: 0.0.7 | ||
" License: Vim License (see :help license) | ||
" Location: plugin/qf.vim | ||
" Website: https://github.com/romainl/vim-qf | ||
|
@@ -34,7 +34,7 @@ nnoremap <expr> <silent> <Plug>QfSwitch &filetype == "qf" ? "<C-w>p" : "<C-w>b" | |
augroup qf | ||
autocmd! | ||
autocmd QuickFixCmdPost [^l]* cwindow | ||
autocmd QuickFixCmdPost l* lwindow | ||
autocmd QuickFixCmdPost l* lwindow | ||
augroup END | ||
|
||
let &cpo = s:save_cpo |