From d36dd841630971b1ac8ebcc02a9c9224ba8272bd Mon Sep 17 00:00:00 2001 From: utubo Date: Thu, 9 Nov 2023 19:05:32 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8feat:=20hlpairs=20settings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vimrc | 7 +++++-- src/.vimrc.src.vim | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.vimrc b/.vimrc index 8876aac..5d1e1a2 100644 --- a/.vimrc +++ b/.vimrc @@ -429,8 +429,11 @@ g:ctrlp_cmd = 'CtrlPMixed' g:auto_cursorline_wait_ms = &ut g:loaded_matchparen = 1 au vimrc VimEnter * nnoremap % call hlpairs#Jump() -nn % call hlpairs#HighlightOuter() -nn % call hlpairs#ReturnCursor() +au vimrc VimEnter * nnoremap ]% call hlpairs#Jump('f') +au vimrc VimEnter * nnoremap [% call hlpairs#Jump('b') +au vimrc VimEnter * hlpairs#TextObjUserMap('%') +nn % call hlpairs#HighlightOuter() +nn % call hlpairs#ReturnCursor() Each w,b,e,ge nnoremap {} (smartword-{}) nn [c (GitGutterPrevHunk) nn ]c (GitGutterNextHunk) diff --git a/src/.vimrc.src.vim b/src/.vimrc.src.vim index 856ad30..9645afa 100644 --- a/src/.vimrc.src.vim +++ b/src/.vimrc.src.vim @@ -543,8 +543,11 @@ g:ctrlp_cmd = 'CtrlPMixed' g:auto_cursorline_wait_ms = &updatetime g:loaded_matchparen = 1 au vimrc VimEnter * nnoremap % call hlpairs#Jump() -nnoremap % call hlpairs#HighlightOuter() -nnoremap % call hlpairs#ReturnCursor() +au vimrc VimEnter * nnoremap ]% call hlpairs#Jump('f') +au vimrc VimEnter * nnoremap [% call hlpairs#Jump('b') +au vimrc VimEnter * hlpairs#TextObjUserMap('%') +nnoremap % call hlpairs#HighlightOuter() +nnoremap % call hlpairs#ReturnCursor() Each w,b,e,ge nnoremap {} (smartword-{}) nnoremap [c (GitGutterPrevHunk) nnoremap ]c (GitGutterNextHunk)