From 478d545286618e952bbc3de5722b166f2b867320 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 8 May 2019 16:18:14 +0200 Subject: 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. --- vimrc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'vimrc') 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 nnoremap ]q :cnext nnoremap [q :cprevious +" Location list +nnoremap ]w :lnext +nnoremap [w :lprevious + " Set scrollbind on a window nnoremap sb :setlocal scrollbind! scrollbind? -- cgit v1.2.3