From 26370a0dc218a0ddd0a5583d964b7eef5a89997b Mon Sep 17 00:00:00 2001 From: rayelliott Date: Sat, 16 May 2020 14:12:33 +0000 Subject: [PATCH 1/2] remove unused entries, add ''; --- init.vim | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/init.vim b/init.vim index a9d9496..89f8219 100644 --- a/init.vim +++ b/init.vim @@ -316,15 +316,6 @@ nnoremap cs :let @/="" nnoremap : :setlocal number: nnoremap rc :so $MYVIMRC nnoremap nh (&hls && v:hlsearch ? ':nohls' : ':set hls')."\n" -nnoremap sl :set invlist -nnoremap aa A -nnoremap a2 A -nnoremap ab AB -nnoremap co :!clear; -nnoremap ;; A; -nnoremap ;j jA; -nnoremap ,, A, -nnoremap ,j jA, " Focus on current fold, close the rest nnoremap zz zMzvzt " replace current word with last yanked/deleted text @@ -396,6 +387,7 @@ inoremap jjrg :reg inoremap :w :w inoremap [:w :w inoremap {:w :w +inoremap ''; ''; "}}} " working_with_underscores{{{ From 04ff808e48582319e01d70422c415ef7038e97f6 Mon Sep 17 00:00:00 2001 From: rayelliott Date: Sat, 16 May 2020 14:16:50 +0000 Subject: [PATCH 2/2] remove unused mappings --- init.vim | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/init.vim b/init.vim index 89f8219..4bd932a 100644 --- a/init.vim +++ b/init.vim @@ -318,44 +318,20 @@ nnoremap rc :so $MYVIMRC nnoremap nh (&hls && v:hlsearch ? ':nohls' : ':set hls')."\n" " Focus on current fold, close the rest nnoremap zz zMzvzt -" replace current word with last yanked/deleted text -nnoremap rw "_diwP -" replace current word with last yanked text -nnoremap ry diw"0P -" quick grep of visual selection -vnoremap gr y:grep! -R " . " open quickfix window of TODOs " FIXME i want fixme!!! nnoremap td :grep -RE '(TODO\\|FIXME)' .:botright cwindow:echo len(getqflist()) 'TODOs' -" devdocs mapping -nnoremap dd :DD -" write and delete current buffer -nnoremap bx :w\|bd " sync highlighting from start nnoremap ss :syntax sync fromstart "}}} -" terminal{{{ -" if has('terminal') -" tnoremap -" endif -"}}} -" windows{{{ - nnoremap ww :resize:vertical resize - -" }}} " git mappings {{{ -nnoremap gD :!clear; echo 'git diff'; git diff nnoremap ga :!clear; git add %; git status nnoremap gg :!clear; git add %; git commit -m '' nnoremap gs :!VIMRUNTIME= st -t WM_FORCE_FLOATING -g 230x62 tig status "}}} " movement/navigation{{{ -nnoremap j :resize -5 -nnoremap k :resize +5 -nnoremap l :vertical resize +5 -nnoremap h :vertical resize -5 " alias for :tjump nnoremap tj g " alias for :ptjump @@ -387,7 +363,7 @@ inoremap jjrg :reg inoremap :w :w inoremap [:w :w inoremap {:w :w -inoremap ''; ''; +nnoremap ''; ''; "}}} " working_with_underscores{{{