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:
parent
6ebbd9c3ab
commit
bd2d4334e3
14
plugins.vim
14
plugins.vim
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user