mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
update vim-sandwich config (use default mapping)
This commit is contained in:
parent
e764ccdfd8
commit
cec75f4d79
20
plugins.vim
20
plugins.vim
@ -696,23 +696,9 @@ call deoplete#custom#source('emoji', 'converters', ['converter_emoji'])
|
|||||||
|
|
||||||
"{{ text objects
|
"{{ text objects
|
||||||
""""""""""""""""""""""""""""vim-sandwich settings"""""""""""""""""""""""""""""
|
""""""""""""""""""""""""""""vim-sandwich settings"""""""""""""""""""""""""""""
|
||||||
" Do not use the default mappings
|
" Map s to nop since s in used by vim-sandwich. Use cl instead of s.
|
||||||
let g:sandwich_no_default_key_mappings = 1
|
nmap s <Nop>
|
||||||
|
omap 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
|
"{{ LaTeX editting
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user