-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
zhenyangze
committed
Dec 22, 2022
1 parent
d51f242
commit 352d25a
Showing
4 changed files
with
38 additions
and
0 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
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
if version >= 900 | ||
Plug 'bfrg/vim-qf-history' | ||
|
||
augroup qf-history | ||
autocmd! | ||
autocmd QuickFixCmdPost chistory echo printf('Quickfix %d of %d (%d items): %s', | ||
\ getqflist({nr: 0}).nr, | ||
\ getqflist({nr: '$'}).nr, | ||
\ getqflist({size: 0}).size, | ||
\ getqflist({title: 0}).title | ||
\ ) | ||
autocmd QuickFixCmdPost lhistory echo printf('Location-list %d of %d (%d items): %s', | ||
\ getloclist(0, {nr: 0}).nr, | ||
\ getloclist(0, {nr: '$'}).nr, | ||
\ getloclist(0, {size: 0}).size, | ||
\ getloclist(0, {title: 0}).title | ||
\ ) | ||
augroup END | ||
|
||
augroup qf-history | ||
autocmd! | ||
autocmd QuickFixCmdPost chistory cwindow | ||
autocmd QuickFixCmdPost lhistory lwindow | ||
augroup END | ||
endif |
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
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