aboutsummaryrefslogtreecommitdiff
path: root/plugins.vim
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2020-10-14 01:43:11 +0800
committerjdhao <jdhao@hotmail.com>2020-10-14 01:43:11 +0800
commitcec75f4d7992471cfee896b486e8b22ad0440529 (patch)
treed2f02803d1fc4d346d164a10c8a0eb13566737df /plugins.vim
parente764ccdfd8bef31cfc0a130d3fb864be37fde00c (diff)
update vim-sandwich config (use default mapping)
Diffstat (limited to 'plugins.vim')
-rw-r--r--plugins.vim20
1 files changed, 3 insertions, 17 deletions
diff --git a/plugins.vim b/plugins.vim
index af48b4f..1831935 100644
--- a/plugins.vim
+++ b/plugins.vim
@@ -696,23 +696,9 @@ call deoplete#custom#source('emoji', 'converters', ['converter_emoji'])
"{{ text objects
""""""""""""""""""""""""""""vim-sandwich settings"""""""""""""""""""""""""""""
-" Do not use the default mappings
-let g:sandwich_no_default_key_mappings = 1
-
-" 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)
+" Map s to nop since s in used by vim-sandwich. Use cl instead of s.
+nmap s <Nop>
+omap s <Nop>
"}}
"{{ LaTeX editting