1
0
mirror of https://github.com/chylex/dotfiles.git synced 2025-07-05 04:38:52 +02:00

Compare commits

..

2 Commits

2 changed files with 13 additions and 7 deletions

View File

@ -103,7 +103,7 @@ noremap § ;
map ů % map ů %
map gů g% map gů g%
" Camel humps " Navigate camel humps
noremap L [w noremap L [w
noremap H [b noremap H [b
nnoremap L [w nnoremap L [w
@ -113,9 +113,11 @@ nnoremap H [b
noremap <A-b> ge noremap <A-b> ge
noremap <A-S-b> gE noremap <A-S-b> gE
" Increment/decrement numbers " Navigate unmatched parentheses/braces
noremap <Bar>+ <C-a> noremap g( [(
noremap <Bar>- <C-x> noremap g) ])
noremap g{ [{
noremap g} ]}
" Edit from cursor to start/end of parenthesized block " Edit from cursor to start/end of parenthesized block
nnoremap c) c]) nnoremap c) c])
@ -227,8 +229,6 @@ map gt gg<Action>(KM.GotoNextTypeInFile)
map gT <Action>(KM.GotoNextTypeInFile) map gT <Action>(KM.GotoNextTypeInFile)
map gu <Action>(ShowUsages) map gu <Action>(ShowUsages)
map gU <Action>(FindUsages) map gU <Action>(FindUsages)
map g( <Action>(KM.GotoPreviousErrorInOtherMode)
map g) <Action>(KM.GotoNextErrorInOtherMode)
" Repurpose 'z' for view actions and debugger " Repurpose 'z' for view actions and debugger
map za <Action>(Annotate) map za <Action>(Annotate)

8
.vimrc
View File

@ -74,7 +74,7 @@ map ů %
map g% map g%
sunmap ů sunmap ů
" Camel humps (https://github.com/vim-scripts/camelcasemotion) " Navigate camel humps (https://github.com/vim-scripts/camelcasemotion)
map L <Plug>CamelCaseMotion_w map L <Plug>CamelCaseMotion_w
map H <Plug>CamelCaseMotion_b map H <Plug>CamelCaseMotion_b
sunmap L sunmap L
@ -100,6 +100,12 @@ xnoremap gj j
nnoremap gk k nnoremap gk k
xnoremap gk k xnoremap gk k
" Navigate unmatched parentheses/braces
noremap g( [(
noremap g) ])
noremap g{ [{
noremap g} ]}
" Edit from cursor to start/end of parenthesized block " Edit from cursor to start/end of parenthesized block
nnoremap c) c]) nnoremap c) c])
nnoremap d) d]) nnoremap d) d])