aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2019-05-08 16:18:14 +0200
committerTeddy Wing2019-05-08 16:18:14 +0200
commit478d545286618e952bbc3de5722b166f2b867320 (patch)
treebde352aaa9aaa6951b10bd30a460ecbb4a95330a
parent44364dae906b050a0400a37a9d60ffb2c5a83045 (diff)
downloaddotvim-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--vimrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index d7c1fd3..7311401 100644
--- a/vimrc
+++ b/vimrc
@@ -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>