Skip to content

Commit 2d05440

Browse files
committed
Merge pull request #175 from yuex/ds__
support ds<space><space>
2 parents c492390 + e38dea3 commit 2d05440

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/surround.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ function! s:dosurround(...) " {{{1
386386
let strcount = (scount == 1 ? "" : scount)
387387
if char == '/'
388388
exe 'norm! '.strcount.'[/d'.strcount.']/'
389-
elseif char =~# '[[:punct:]]' && char !~# '[][(){}<>"''`]'
389+
elseif char =~# '[[:punct:][:space:]]' && char !~# '[][(){}<>"''`]'
390390
exe 'norm! T'.char
391391
if getline('.')[col('.')-1] == char
392392
exe 'norm! l'
@@ -416,7 +416,7 @@ function! s:dosurround(...) " {{{1
416416
norm! "_x
417417
call setreg('"','/**/',"c")
418418
let keeper = substitute(substitute(keeper,'^/\*\s\=','',''),'\s\=\*$','','')
419-
elseif char =~# '[[:punct:]]' && char !~# '[][(){}<>]'
419+
elseif char =~# '[[:punct:][:space:]]' && char !~# '[][(){}<>]'
420420
exe 'norm! F'.char
421421
exe 'norm! df'.char
422422
else

0 commit comments

Comments
 (0)