Skip to content

Commit

Permalink
✨feat: hlpairs settings
Browse files Browse the repository at this point in the history
  • Loading branch information
utubo committed Nov 9, 2023
1 parent f1edd77 commit d36dd84
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -429,8 +429,11 @@ g:ctrlp_cmd = 'CtrlPMixed'
g:auto_cursorline_wait_ms = &ut
g:loaded_matchparen = 1
au vimrc VimEnter * nnoremap % <ScriptCmd>call hlpairs#Jump()<CR>
nn <Leader>% <ScriptCmd>call hlpairs#HighlightOuter()<CR>
nn <Space>% <ScriptCmd>call hlpairs#ReturnCursor()<CR>
au vimrc VimEnter * nnoremap ]% <Cmd>call hlpairs#Jump('f')<CR>
au vimrc VimEnter * nnoremap [% <Cmd>call hlpairs#Jump('b')<CR>
au vimrc VimEnter * hlpairs#TextObjUserMap('%')
nn <Leader>% <Cmd>call hlpairs#HighlightOuter()<CR>
nn <Space>% <Cmd>call hlpairs#ReturnCursor()<CR>
Each w,b,e,ge nnoremap {} <Plug>(smartword-{})
nn [c <Plug>(GitGutterPrevHunk)
nn ]c <Plug>(GitGutterNextHunk)
Expand Down
7 changes: 5 additions & 2 deletions src/.vimrc.src.vim
Original file line number Diff line number Diff line change
Expand Up @@ -543,8 +543,11 @@ g:ctrlp_cmd = 'CtrlPMixed'
g:auto_cursorline_wait_ms = &updatetime
g:loaded_matchparen = 1
au vimrc VimEnter * nnoremap % <ScriptCmd>call hlpairs#Jump()<CR>
nnoremap <Leader>% <ScriptCmd>call hlpairs#HighlightOuter()<CR>
nnoremap <Space>% <ScriptCmd>call hlpairs#ReturnCursor()<CR>
au vimrc VimEnter * nnoremap ]% <Cmd>call hlpairs#Jump('f')<CR>
au vimrc VimEnter * nnoremap [% <Cmd>call hlpairs#Jump('b')<CR>
au vimrc VimEnter * hlpairs#TextObjUserMap('%')
nnoremap <Leader>% <Cmd>call hlpairs#HighlightOuter()<CR>
nnoremap <Space>% <Cmd>call hlpairs#ReturnCursor()<CR>
Each w,b,e,ge nnoremap {} <Plug>(smartword-{})
nnoremap [c <Plug>(GitGutterPrevHunk)
nnoremap ]c <Plug>(GitGutterNextHunk)
Expand Down

0 comments on commit d36dd84

Please sign in to comment.