From e4015d66a4f144b85196a673ce628de5f7d27449 Mon Sep 17 00:00:00 2001 From: Srinath Avadhanula Date: Tue, 14 Jan 2003 22:46:56 +0000 Subject: [PATCH] - 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. --- ftplugin/latex-suite/main.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ftplugin/latex-suite/main.vim b/ftplugin/latex-suite/main.vim index 8eb1117..f9cd428 100755 --- a/ftplugin/latex-suite/main.vim +++ b/ftplugin/latex-suite/main.vim @@ -140,6 +140,7 @@ if !exists('s:doneMappings') " This function sets up fake maps of the following forms: " ``[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. function! s:ProtectLetters(first, last) @@ -148,6 +149,7 @@ if !exists('s:doneMappings') if nr2char(i) =~ '[[:print:]]' 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 endwhile