1
0
mirror of https://github.com/chylex/dotfiles.git synced 2025-07-04 19: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 gů g%
" Camel humps
" Navigate camel humps
noremap L [w
noremap H [b
nnoremap L [w
@ -113,9 +113,11 @@ nnoremap H [b
noremap <A-b> ge
noremap <A-S-b> gE
" Increment/decrement numbers
noremap <Bar>+ <C-a>
noremap <Bar>- <C-x>
" Navigate unmatched parentheses/braces
noremap g( [(
noremap g) ])
noremap g{ [{
noremap g} ]}
" Edit from cursor to start/end of parenthesized block
nnoremap c) c])
@ -227,8 +229,6 @@ map gt gg<Action>(KM.GotoNextTypeInFile)
map gT <Action>(KM.GotoNextTypeInFile)
map gu <Action>(ShowUsages)
map gU <Action>(FindUsages)
map g( <Action>(KM.GotoPreviousErrorInOtherMode)
map g) <Action>(KM.GotoNextErrorInOtherMode)
" Repurpose 'z' for view actions and debugger
map za <Action>(Annotate)

8
.vimrc
View File

@ -74,7 +74,7 @@ map ů %
map g%
sunmap ů
" Camel humps (https://github.com/vim-scripts/camelcasemotion)
" Navigate camel humps (https://github.com/vim-scripts/camelcasemotion)
map L <Plug>CamelCaseMotion_w
map H <Plug>CamelCaseMotion_b
sunmap L
@ -100,6 +100,12 @@ xnoremap gj j
nnoremap 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
nnoremap c) c])
nnoremap d) d])