Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite
In directory sc8-pr-cvs1:/tmp/cvs-serv19922
Modified Files:
main.vim
Log Message:
- Protect all printable ascii characters in the range 32-127 from
accidental expansion at the beginning of a tex double quote. (Felt a need
for this when I realized that ``* and such were still trouble causers).
Is this way too agressive?
Index: main.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** main.vim 10 Jan 2003 05:11:43 -0000 1.25
--- main.vim 11 Jan 2003 08:25:12 -0000 1.26
***************
*** 80,83 ****
--- 80,84 ----
call IMAP (g:Tex_Leader.'+', '\bigcup', "tex")
call IMAP (g:Tex_Leader.'M', '\sum_{<++>}^{<++>}<++>', 'tex')
+ call IMAP (g:Tex_Leader.'S', '\sum_{<++>}^{<++>}<++>', 'tex')
call IMAP (g:Tex_Leader.'(', '\subset', "tex")
call IMAP (g:Tex_Leader.')', '\supset', "tex")
***************
*** 140,154 ****
" ``[aA] -> ``[aA] (for writing in quotations)
" \`[aA] -> \`[aA] (for writing diacritics)
! function! s:ProtectLetters()
! let i = char2nr('a')
! while i <= char2nr('z')
! call IMAP('``'.nr2char(i), '``'.nr2char(i), 'tex')
! call IMAP('\`'.nr2char(i), '\`'.nr2char(i), 'tex')
! call IMAP('``'.nr2char(i-32), '``'.nr2char(i-32), 'tex')
! call IMAP('\`'.nr2char(i-32), '\`'.nr2char(i-32), 'tex')
let i = i + 1
endwhile
endfunction
! call s:ProtectLetters()
" }}}
" vmaps: enclose selected region in brackets, environments {{{
--- 141,157 ----
" ``[aA] -> ``[aA] (for writing in quotations)
" \`[aA] -> \`[aA] (for writing diacritics)
! " It does this for all printable lower ascii characters just to make sure
! " we dont let anything slip by.
! function! s:ProtectLetters(first, last)
! let i = a:first
! while i <= a:last
! if nr2char(i) =~ '[[:print:]]'
! call IMAP('``'.nr2char(i), '``'.nr2char(i), 'tex')
! call IMAP('\`'.nr2char(i), '\`'.nr2char(i), 'tex')
! endif
let i = i + 1
endwhile
endfunction
! call s:ProtectLetters(32, 127)
" }}}
" vmaps: enclose selected region in brackets, environments {{{
|