From 320faa7654ab04216e61c6c0c419e2042bc80853 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 1 Jul 2018 23:15:17 +1200 Subject: Reorder mappings --- vim/vimrc | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index b4769216..2ba4fdff 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -164,6 +164,19 @@ if has('windows') endif endif +" Remap normal J to stay in place while joining lines +if &loadplugins + nmap J FixedJoin +endif + +" Remap normal Y to yank to end of line (consistent with C, D) +nnoremap Y y$ + +" ZA unconditionally writes all buffers +nnoremap ZA :wall! +" ZW unconditionally writes current buffer +nnoremap ZW :write! + " Remap normal/visual to scroll down a page nnoremap if v:version >= 700 @@ -176,15 +189,15 @@ if v:version >= 700 xnoremap & :&& endif -" Stack insert Ctrl-C to undo the escaped insert operation -inoremap u - " Stack normal/visual Ctrl-L to clear search highlight before redraw nnoremap :nohlsearch if v:version >= 700 xnoremap :nohlsearchgv endif +" Stack insert Ctrl-C to undo the escaped insert operation +inoremap u + " Cycle through argument list nnoremap [a :previous nnoremap ]a :next @@ -205,19 +218,6 @@ nnoremap ]t :tabnext nmap [ PutBlankLinesAbove nmap ] PutBlankLinesBelow -" Remap normal J to stay in place while joining lines -if &loadplugins - nmap J FixedJoin -endif - -" Remap normal Y to yank to end of line (consistent with C, D) -nnoremap Y y$ - -" ZA unconditionally writes all buffers -nnoremap ZA :wall! -" ZW unconditionally writes current buffer -nnoremap ZW :write! - " Normal mode leader mappings below; use rather than on the " non-plugin maps so that they work on vim-tiny -- cgit v1.2.3