Permalink
Browse files

Add support for tag repeat

  • Loading branch information...
1 parent 4eb2cdf commit 3482aea5ba346df593f41a2e327911d2e48477fe @apcomplete apcomplete committed Mar 2, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 plugin/surround.vim
View
@@ -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 = ''

0 comments on commit 3482aea

Please sign in to comment.