Permalink
Browse files

Work around mswin.vim

  • Loading branch information...
1 parent 98e821d commit 01ddd82695e079d54285a1c57635bd96e02e8c30 @tpope tpope committed Apr 15, 2010
Showing with 8 additions and 8 deletions.
  1. +8 −8 plugin/ragtag.vim
View
@@ -109,8 +109,8 @@ function! s:Init()
let b:surround_45 = "<% \r %>"
let b:surround_61 = "<%= \r %>"
endif
- imap <buffer> <C-X>= <SID>ragtagOopen<SID>ragtagOclose<Left>
- imap <buffer> <C-X>+ <C-V><NL><Esc>I<SID>ragtagOopen<Esc>A<SID>ragtagOclose<Esc>F<NL>s
+ imap <script> <buffer> <C-X>= <SID>ragtagOopen<SID>ragtagOclose<Left>
+ imap <script> <buffer> <C-X>+ <C-V><NL><Esc>I<SID>ragtagOopen<Esc>A<SID>ragtagOclose<Esc>F<NL>s
" <%\n\n%>
if &ft == "cf"
inoremap <buffer> <C-X>] <cfscript><CR></cfscript><Esc>O
@@ -129,13 +129,13 @@ function! s:Init()
inoremap <buffer> <C-X>- <cf><Left>
inoremap <buffer> <C-X>_ <cfset ><Left>
else
- imap <buffer> <C-X>- <C-X><Lt><Space><Space><C-X>><Esc>2hi
- imap <buffer> <C-X>_ <C-V><NL><Esc>I<C-X><Lt><Space><Esc>A<Space><C-X>><Esc>F<NL>s
+ imap <script> <buffer> <C-X>- <C-X><Lt><Space><Space><C-X>><Esc>2hi
+ imap <script> <buffer> <C-X>_ <C-V><NL><Esc>I<C-X><Lt><Space><Esc>A<Space><C-X>><Esc>F<NL>s
endif
" Comments
if &ft =~ '^asp'
- imap <buffer> <C-X>' <C-X><Lt>'<Space><Space><C-X>><Esc>2hi
- imap <buffer> <C-X>" <C-V><NL><Esc>I<C-X><Lt>'<Space><Esc>A<Space><C-X>><Esc>F<NL>s
+ imap <script> <buffer> <C-X>' <C-X><Lt>'<Space><Space><C-X>><Esc>2hi
+ imap <script> <buffer> <C-X>" <C-V><NL><Esc>I<C-X><Lt>'<Space><Esc>A<Space><C-X>><Esc>F<NL>s
let b:surround_35 = maparg("<C-X><Lt>","i")."' \r ".maparg("<C-X>>","i")
elseif &ft == "jsp"
inoremap <buffer> <C-X>' <Lt>%--<Space><Space>--%><Esc>4hi
@@ -159,8 +159,8 @@ function! s:Init()
inoremap <buffer> <C-X>" <C-V><NL><Esc>I<C-X>{%<Space>comment<Space>%}<Esc>A{%<Space>endcomment<Space>%}<Esc>F<NL>s
let b:surround_35 = "{% comment %}\r{% endcomment %}"
else
- imap <buffer> <C-X>' <C-X><Lt>#<Space><Space><C-X>><Esc>2hi
- imap <buffer> <C-X>" <C-V><NL><Esc>I<C-X><Lt>#<Space><Esc>A<Space><C-X>><Esc>F<NL>s
+ imap <script> <buffer> <C-X>' <C-X><Lt>#<Space><Space><C-X>><Esc>2hi
+ imap <script> <buffer> <C-X>" <C-V><NL><Esc>I<C-X><Lt>#<Space><Esc>A<Space><C-X>><Esc>F<NL>s
let b:surround_35 = maparg("<C-X><Lt>","i")."# \r ".maparg("<C-X>>","i")
endif
imap <buffer> <C-X>% <Plug>ragtagUrlEncode

0 comments on commit 01ddd82

Please sign in to comment.