mirror of
https://github.com/tpope/vim-surround.git
synced 2025-12-08 21:54:46 +08:00
Warn about removed "s" mapping
This commit is contained in:
@@ -542,25 +542,16 @@ inoremap <silent> <Plug>Isurround <C-R>=<SID>insert()<CR>
|
|||||||
inoremap <silent> <Plug>ISurround <C-R>=<SID>insert(1)<CR>
|
inoremap <silent> <Plug>ISurround <C-R>=<SID>insert(1)<CR>
|
||||||
|
|
||||||
if !exists("g:surround_no_mappings") || ! g:surround_no_mappings
|
if !exists("g:surround_no_mappings") || ! g:surround_no_mappings
|
||||||
nmap ds <Plug>Dsurround
|
nmap ds <Plug>Dsurround
|
||||||
nmap cs <Plug>Csurround
|
nmap cs <Plug>Csurround
|
||||||
nmap ys <Plug>Ysurround
|
nmap ys <Plug>Ysurround
|
||||||
nmap yS <Plug>YSurround
|
nmap yS <Plug>YSurround
|
||||||
nmap yss <Plug>Yssurround
|
nmap yss <Plug>Yssurround
|
||||||
nmap ySs <Plug>YSsurround
|
nmap ySs <Plug>YSsurround
|
||||||
nmap ySS <Plug>YSsurround
|
nmap ySS <Plug>YSsurround
|
||||||
if !hasmapto("<Plug>VSurround","v")
|
xmap S <Plug>VSurround
|
||||||
if exists(":xmap")
|
xmap gS <Plug>VgSurround
|
||||||
xmap S <Plug>VSurround
|
xnoremap <silent> s :<C-U>echoerr 'surround.vim: Visual mode s has been removed in favor of S'<CR>
|
||||||
else
|
|
||||||
vmap S <Plug>VSurround
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
if exists(":xmap")
|
|
||||||
xmap gS <Plug>VgSurround
|
|
||||||
else
|
|
||||||
vmap gS <Plug>VgSurround
|
|
||||||
endif
|
|
||||||
if !hasmapto("<Plug>Isurround","i") && "" == mapcheck("<C-S>","i")
|
if !hasmapto("<Plug>Isurround","i") && "" == mapcheck("<C-S>","i")
|
||||||
imap <C-S> <Plug>Isurround
|
imap <C-S> <Plug>Isurround
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user