Browse Source

vim: add s* mappings

master
sentriz 11 months ago
parent
commit
b201fe16f7
No known key found for this signature in database GPG Key ID: 9A8DAE1CA907B862
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      conf_common/.config/nvim/conf_mappings.vim

+ 4
- 0
conf_common/.config/nvim/conf_mappings.vim View File

@@ -26,6 +26,10 @@ nnoremap z za " toggle node
nnoremap <expr> Z &foldlevel == 0 ? "zR" : "zM" " toggle buffer
nnoremap z= z= " fix spell bind

" load current word or selection to cgn
nnoremap <silent> s* :let @/='\<'.expand('<cword>').'\>'<cr>cgn
xnoremap <silent> s* "sy:let @/=@s<cr>cgn

" bubbling
nnoremap <s-k> ddkP
nnoremap <s-j> ddp


Loading…
Cancel
Save