mirror of
https://github.com/tpope/vim-surround.git
synced 2026-09-10 07:16:17 -04:00
Add support for tag repeat
This commit is contained in:
parent
4eb2cdfccc
commit
3482aea5ba
|
|
@ -178,8 +178,10 @@ function! s:wrap(string,char,type,...)
|
|||
if dounmapb
|
||||
silent! cunmap >
|
||||
endif
|
||||
let s:tag = tag
|
||||
if tag != ""
|
||||
let tag = substitute(tag,'>*$','','')
|
||||
let s:tag = tag . '>'
|
||||
let before = '<'.tag.'>'
|
||||
if tag =~ '/$'
|
||||
let after = ''
|
||||
|
|
|
|||
Loading…
Reference in a new issue