[Vim-latex-cvs] vimfiles/ftplugin/latex-suite main.vim,1.28,1.29
Brought to you by:
srinathava,
tmaas
From: <sri...@us...> - 2003-01-14 22:46:59
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv25545 Modified Files: main.vim Log Message: - expansion of `g to \gamma makes writing german quotes difficult because correct german quotes are "` and '". Protect this expansion as well... TODO: This seems to getting wierd. A better way would have been to check for math mode. But how to do that? Checking for synIDattr() =~? 'math' is not good enough because \cite and \sum are both 'texStatement's. TODO: Is this getting too annoying to be left enabled by default? Benji suggests disabling this by default. Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** main.vim 14 Jan 2003 13:41:26 -0000 1.28 --- main.vim 14 Jan 2003 22:46:56 -0000 1.29 *************** *** 141,144 **** --- 141,145 ---- " ``[aA] -> ``[aA] (for writing in quotations) " \`[aA] -> \`[aA] (for writing diacritics) + " "`[aA] -> "`[aA] (for writing german quotations) " It does this for all printable lower ascii characters just to make sure " we dont let anything slip by. *************** *** 149,152 **** --- 150,154 ---- call IMAP('``'.nr2char(i), '``'.nr2char(i), 'tex') call IMAP('\`'.nr2char(i), '\`'.nr2char(i), 'tex') + call IMAP('"`'.nr2char(i), '\`'.nr2char(i), 'tex') endif let i = i + 1 |