From 5c6a64f3335b59b778d1bd6f39616987d95a4832 Mon Sep 17 00:00:00 2001 From: "Suraj N. Kurapati" Date: Thu, 30 Apr 2015 10:36:59 -0700 Subject: [PATCH] GH-159: don't use comma as alias for HTML/XML tags This change allows us to surround text with commas. --- plugin/surround.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/surround.vim b/plugin/surround.vim index 82b016e..60663c1 100644 --- a/plugin/surround.vim +++ b/plugin/surround.vim @@ -164,7 +164,7 @@ function! s:wrap(string,char,type,removed,special) elseif newchar ==# ':' let before = ':' let after = '' - elseif newchar =~# "[tT\<,]" + elseif newchar =~# "[tT\<]" let dounmapp = 0 let dounmapb = 0 if !maparg(">","c") @@ -200,7 +200,7 @@ function! s:wrap(string,char,type,removed,special) let before = '<'.tag.attributes.'>' let after = '' endif - if newchar == "\" || newchar == "," + if newchar == "\" if type ==# "v" || type ==# "V" let before .= "\n\t" endif