From 50cea145343e74a3018ea21d35e57b607b90852c Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 8 Jul 2009 19:04:15 -0400 Subject: [PATCH] Really get rid of % mapping on tag input --- plugin/surround.vim | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/plugin/surround.vim b/plugin/surround.vim index 44c8976..3bfd0e0 100644 --- a/plugin/surround.vim +++ b/plugin/surround.vim @@ -193,17 +193,8 @@ function! s:wrap(string,char,type,...) let dounmapb= 1 " Hide from AsNeeded exe "cn"."oremap > " - exe "cn"."oremap % %" - "cm ap > =getcmdline() =~ '^[^%?].*[%?]$' ? "\026\076" : "\026\076\015" endif let default = "" - if !maparg("%","c") - " This is to help when typing things like - " - " The downside is it breaks backspace, so lets disable it for now - "let dounmapp= 1 - "exe "cn"."oremap % %" - endif if newchar ==# "T" if !exists("s:lastdel") let s:lastdel = "" @@ -212,15 +203,9 @@ function! s:wrap(string,char,type,...) endif let tag = input("<",default) echo "<".substitute(tag,'>*$','>','') - "if dounmapr - "silent! cunmap - "endif if dounmapb silent! cunmap > endif - if dounmapp - silent! cunmap % - endif if tag != "" let tag = substitute(tag,'>*$','','') let before = '<'.tag.'>'