mirror of
https://github.com/tpope/vim-surround.git
synced 2026-09-10 07:16:17 -04:00
initial implementation
This commit is contained in:
parent
aeb933272e
commit
6c676da884
|
|
@ -35,7 +35,7 @@ endfunction
|
|||
|
||||
function! s:inputreplacement()
|
||||
let c = s:getchar()
|
||||
if c == " "
|
||||
if c =~ "[ 0-9]"
|
||||
let c .= s:getchar()
|
||||
endif
|
||||
if c =~ "\<Esc>" || c =~ "\<C-C>"
|
||||
|
|
@ -164,6 +164,11 @@ function! s:wrap(string,char,type,removed,special)
|
|||
elseif newchar ==# ':'
|
||||
let before = ':'
|
||||
let after = ''
|
||||
elseif newchar =~ '^[0-9].'
|
||||
let scount = strpart(newchar,0,1)
|
||||
let newchar = strpart(newchar,1)
|
||||
let before = repeat(newchar, scount)
|
||||
let after = repeat(newchar, scount)
|
||||
elseif newchar =~# "[tT\<C-T><]"
|
||||
let dounmapp = 0
|
||||
let dounmapb = 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue