From 3482aea5ba346df593f41a2e327911d2e48477fe Mon Sep 17 00:00:00 2001 From: Alex Padgett Date: Fri, 2 Mar 2012 09:20:22 -0500 Subject: [PATCH] Add support for tag repeat --- plugin/surround.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/surround.vim b/plugin/surround.vim index 71da7a1..8eee147 100644 --- a/plugin/surround.vim +++ b/plugin/surround.vim @@ -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 = ''