aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-01 23:47:47 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-01 23:47:47 +1200
commit8dcdf5f8273c0fc38bdb3258eba4a853793666a2 (patch)
tree5e39329e04df1f2748fc1222769d77384b4ff1c0 /vim/vimrc
parentRemove unused mappings (diff)
downloaddotfiles-8dcdf5f8273c0fc38bdb3258eba4a853793666a2.tar.gz
dotfiles-8dcdf5f8273c0fc38bdb3258eba4a853793666a2.zip
Rearrange mappings a little more
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc12
1 files changed, 6 insertions, 6 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 33c80f1a..da48f4c6 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -164,6 +164,12 @@ if has('windows')
endif
endif
+" Stack normal/visual/select Ctrl-L to clear search highlight
+noremap <silent> <C-L> :<C-U>nohlsearch<CR><C-L>
+
+" Stack insert Ctrl-C to undo the escaped insert operation
+inoremap <C-C> <C-C>u
+
" Remap normal J to stay in place while joining lines
if &loadplugins
nmap J <Plug>FixedJoin
@@ -181,12 +187,6 @@ if v:version >= 700
xnoremap <silent> & :&&<CR>
endif
-" Stack normal/visual/select Ctrl-L to clear search highlight
-noremap <silent> <C-L> :<C-U>nohlsearch<CR><C-L>
-
-" Stack insert Ctrl-C to undo the escaped insert operation
-inoremap <C-C> <C-C>u
-
" Cycle through argument list
nnoremap [a :<C-U>previous<CR>
nnoremap ]a :<C-U>next<CR>