Skip to content

Commit

Permalink
On QuickFixCmdPost, use current window to make the first jump
Browse files Browse the repository at this point in the history
  • Loading branch information
qstrahl committed Aug 19, 2019
1 parent 1917da5 commit 508075a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugin/qf.vim
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ nnoremap <silent> <Plug>(qf_newer) :<C-u> call qf#history#Newer
augroup qf
autocmd!

" use the window in which the quickfix command was run
autocmd QuickFixCmdPost [^l]* silent! cfirst
autocmd QuickFixCmdPost l* silent! cfirst

" automatically open the location/quickfix window after :make, :grep,
" :lvimgrep and friends if there are valid locations/errors
autocmd QuickFixCmdPost [^l]* nested call qf#OpenQuickfix()
Expand Down

0 comments on commit 508075a

Please sign in to comment.