aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-23 11:08:48 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-23 11:49:42 +1200
commitae6952c2d9c9db979dc30358cbd82d625b39808d (patch)
tree126b647763540a37b32083d419fb8ae3be6ed196
parentbbd959a42ae6035db460c402315003d76d44f301 (diff)
downloaddotfiles-ae6952c2d9c9db979dc30358cbd82d625b39808d.tar.gz
dotfiles-ae6952c2d9c9db979dc30358cbd82d625b39808d.zip
Reorder .vimrc mappings
-rw-r--r--vim/vimrc8
1 files changed, 4 insertions, 4 deletions
diff --git a/vim/vimrc b/vim/vimrc
index fad38b7a..4cf4b695 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -175,15 +175,15 @@ if has('windows')
endif
-" Rebind insert Ctrl-C to undo the current insert operation
-inoremap <C-C> <C-C>u
-
" Rebind normal <Space> to scroll down a page
nnoremap <Space> <C-F>
" Rebind normal & to preserve substitution flags
nnoremap <silent> & :<C-U>&&<CR>
+" Stack insert Ctrl-C to undo the escaped insert operation
+inoremap <C-C> <C-C>u
+
" Stack normal Ctrl-L to clear search highlighting before redraw
nnoremap <silent> <C-L> :<C-U>nohlsearch<CR><C-L>
@@ -193,7 +193,7 @@ nnoremap ]a :<C-U>next<CR>
" Cycle through buffers
nnoremap [b :<C-U>bprevious<CR>
nnoremap ]b :<C-U>bnext<CR>
-" Cycle through quicklist items (more often :helpgrep results)
+" Cycle through quicklist/:helpgrep items
nnoremap [c :<C-U>cprevious<CR>
nnoremap ]c :<C-U>cnext<CR>
" Cycle through location list items