diff options
author | Teddy Wing | 2020-06-17 22:15:05 +0200 |
---|---|---|
committer | Teddy Wing | 2020-06-20 20:37:02 +0200 |
commit | f3d05ab5176c03bfc5be9ef472c895734fae1a54 (patch) | |
tree | 93b9e8ad17133174951a3af8f6ffbf171f0e1f9b | |
parent | 5739a83ecc9e6fdcbf857399e1f532a86cdfd9f7 (diff) | |
download | dotvim-f3d05ab5176c03bfc5be9ef472c895734fae1a54.tar.bz2 |
vimrc: Add count support to `[q`, `]q`, `[w`, `]w`
Allow these next/previous mappings for the quickfix and location list to
take counts.
-rw-r--r-- | vimrc | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -458,6 +458,9 @@ " 2020.02.25: " * Add `<C-w>e` mapping to open the current buffer in a new tab. " +" 2020.06.17: +" * Add count support to `[q`, `]q`, `[w`, `]w`. +" " Pathogen @@ -791,12 +794,12 @@ nnoremap <C-w><C-q> <nop> nnoremap <C-w>e :tabedit %<cr> " Quickfix -nnoremap ]q :cnext<cr> -nnoremap [q :cprevious<cr> +nnoremap ]q :<C-u>execute v:count . 'cnext'<cr> +nnoremap [q :<C-u>execute v:count . 'cprevious'<cr> " Location list -nnoremap ]w :lnext<cr> -nnoremap [w :lprevious<cr> +nnoremap ]w :<C-u>execute v:count . 'next'<cr> +nnoremap [w :<C-u>execute v:count . 'previous'<cr> " Set scrollbind on a window nnoremap <leader>sb :setlocal scrollbind! scrollbind?<cr> |