mirror of
https://github.com/tpope/vim-surround.git
synced 2025-11-13 22:03:48 -05:00
Add support for tag repeat
This commit is contained in:
@@ -178,8 +178,10 @@ function! s:wrap(string,char,type,...)
|
|||||||
if dounmapb
|
if dounmapb
|
||||||
silent! cunmap >
|
silent! cunmap >
|
||||||
endif
|
endif
|
||||||
|
let s:tag = tag
|
||||||
if tag != ""
|
if tag != ""
|
||||||
let tag = substitute(tag,'>*$','','')
|
let tag = substitute(tag,'>*$','','')
|
||||||
|
let s:tag = tag . '>'
|
||||||
let before = '<'.tag.'>'
|
let before = '<'.tag.'>'
|
||||||
if tag =~ '/$'
|
if tag =~ '/$'
|
||||||
let after = ''
|
let after = ''
|
||||||
|
|||||||
Reference in New Issue
Block a user