diff options
author | Teddy Wing | 2019-05-08 16:18:14 +0200 |
---|---|---|
committer | Teddy Wing | 2019-05-08 16:18:14 +0200 |
commit | 478d545286618e952bbc3de5722b166f2b867320 (patch) | |
tree | bde352aaa9aaa6951b10bd30a460ecbb4a95330a | |
parent | 44364dae906b050a0400a37a9d60ffb2c5a83045 (diff) | |
download | dotvim-478d545286618e952bbc3de5722b166f2b867320.tar.bz2 |
vimrc: Add next/previous shortcuts for the location list
The Vim-Go plugin uses the location list for certain operations. Add
these shortcuts to make it quicker to navigate.
-rw-r--r-- | vimrc | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -409,6 +409,7 @@ " * Hide error message that Vim-Go displays when using a version of Vim " older than 7.4.2009. " * Format Go code with `goimports`. +" * Add next/previous shortcuts for the location list. " @@ -730,6 +731,10 @@ nnoremap <C-w><C-q> <nop> nnoremap ]q :cnext<cr> nnoremap [q :cprevious<cr> +" Location list +nnoremap ]w :lnext<cr> +nnoremap [w :lprevious<cr> + " Set scrollbind on a window nnoremap <leader>sb :setlocal scrollbind! scrollbind?<cr> |