aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2014-05-26 14:39:14 -0400
committerTeddy Wing2014-05-26 14:39:14 -0400
commit7b091cedf8d112a6e22e201c731829039f67a443 (patch)
treef9202a69f6fe52e5d5e09776bb668bfb03c0d226
parente9a3ee3c264fa3d002f1cc559d353021b4d2ddcf (diff)
downloaddotvim-7b091cedf8d112a6e22e201c731829039f67a443.tar.bz2
vimrc: add mappings for next/previous in quickfix window
-rw-r--r--vimrc9
1 files changed, 9 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index 714d360..951e641 100644
--- a/vimrc
+++ b/vimrc
@@ -157,6 +157,10 @@
" * Set `cursorline` to highlight the current line. Shame it doesn't
" play nice with soft wrapping but I'm going to try it out for now.
"
+" 2014.05.26:
+" * Add :cnext and :cprevious mappings for easier navigation in the
+" quickfix window. Key pairs taken from Tim Pope's unimpaired.vim.
+"
" Pathogen
@@ -432,6 +436,11 @@ nnoremap <leader>/ :nohlsearch<cr>
" Tabs
nnoremap <leader>tn :tabnew<cr>
+" Quickfix
+nnoremap ]q :cnext<cr>
+nnoremap [q :cprevious<cr>
+
+
" Commands
" ========