Skip to content
This repository
Browse code

Really get rid of % mapping on tag input

  • Loading branch information...
commit 50cea145343e74a3018ea21d35e57b607b90852c 1 parent 298858f
Tim Pope authored July 08, 2009

Showing 1 changed file with 0 additions and 15 deletions. Show diff stats Hide diff stats

  1. 15  plugin/surround.vim
15  plugin/surround.vim
@@ -193,17 +193,8 @@ function! s:wrap(string,char,type,...)
193 193
             let dounmapb= 1
194 194
             " Hide from AsNeeded
195 195
             exe "cn"."oremap > <CR>"
196  
-            exe "cn"."oremap % %<C-V>"
197  
-            "cm ap > <C-R>=getcmdline() =~ '^[^%?].*[%?]$' ? "\026\076" : "\026\076\015"<CR>
198 196
         endif
199 197
         let default = ""
200  
-        if !maparg("%","c")
201  
-            " This is to help when typing things like
202  
-            " <a href="/images/<%= @image.filename %>">
203  
-            " The downside is it breaks backspace, so lets disable it for now
204  
-            "let dounmapp= 1
205  
-            "exe "cn"."oremap % %<C-V>"
206  
-        endif
207 198
         if newchar ==# "T"
208 199
             if !exists("s:lastdel")
209 200
                 let s:lastdel = ""
@@ -212,15 +203,9 @@ function! s:wrap(string,char,type,...)
212 203
         endif
213 204
         let tag = input("<",default)
214 205
         echo "<".substitute(tag,'>*$','>','')
215  
-        "if dounmapr
216  
-            "silent! cunmap <CR>
217  
-        "endif
218 206
         if dounmapb
219 207
             silent! cunmap >
220 208
         endif
221  
-        if dounmapp
222  
-            silent! cunmap %
223  
-        endif
224 209
         if tag != ""
225 210
             let tag = substitute(tag,'>*$','','')
226 211
             let before = '<'.tag.'>'

0 notes on commit 50cea14

Please sign in to comment.
Something went wrong with that request. Please try again.