Skip to content

Commit 59ccbdd

Browse files
authored
Merge pull request #42 from lifepillar/mappings
Improve q and <tab> mappings in the quickfix list.
2 parents ba26b76 + 3b64cb5 commit 59ccbdd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/ledger.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,8 +551,8 @@ function! ledger#output(report)
551551
call append(0, a:report)
552552
setlocal nomodifiable
553553
" Set local mappings to quit window or lose focus.
554-
nnoremap <silent> <buffer> <tab> <c-w><c-w>
555-
nnoremap <silent> <buffer> q <c-w>c
554+
nnoremap <silent> <buffer> <tab> <c-w><c-p>
555+
nnoremap <silent> <buffer> q <c-w><c-p>@=winnr("#")<cr><c-w>c
556556
" Add some coloring to the report
557557
syntax match LedgerNumber /-\@1<!\d\+\([,.]\d\+\)\+/
558558
syntax match LedgerNegativeNumber /-\d\+\([,.]\d\+\)\+/

0 commit comments

Comments
 (0)