1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

update vim-sandwich mappings

This commit is contained in:
jdhao 2020-10-12 00:32:17 +08:00
parent 6ebbd9c3ab
commit bd2d4334e3

View File

@ -690,6 +690,20 @@ call deoplete#custom#source('emoji', 'converters', ['converter_emoji'])
nmap s <Nop>
xmap s <Nop>
" mappings for add surround
nmap ys <Plug>(operator-sandwich-add)
xmap ys <Plug>(operator-sandwich-add)
omap ys <Plug>(operator-sandwich-g@)
" mappings for delete surround
nmap dsb <Plug>(operator-sandwich-delete)<Plug>(operator-sandwich-release-count)<Plug>(textobj-sandwich-auto-a)
nmap ds <Plug>(operator-sandwich-delete)<Plug>(operator-sandwich-release-count)<Plug>(textobj-sandwich-query-a)
xmap ds <Plug>(operator-sandwich-delete)
" mappings for change surround
nmap csb <Plug>(operator-sandwich-replace)<Plug>(operator-sandwich-release-count)<Plug>(textobj-sandwich-auto-a)
nmap cs <Plug>(operator-sandwich-replace)<Plug>(operator-sandwich-release-count)<Plug>(textobj-sandwich-query-a)
xmap cs <Plug>(operator-sandwich-replace)
"}}
"{{ LaTeX editting