Stefan --

        I *think* that Vim-LaTeX looks for

\usepackage{german}

in your TeX and, if found, runs the

~/.vim/ftplugin/latex-suite/packages/german

file. That file has in it:


let b:Tex_SmartQuoteOpen = '"`'
let b:Tex_SmartQuoteClose = "\"'"


which sets everything up. I'm guessing that when you open a new buffer, 
the buffer doesn't look like a TeX file with a \usepackage{german} line 
in it, so it doesn't automatically get loaded.


        I think you want to put:

let g:Tex_SmartQuoteOpen = '"`'
let g:Tex_SmartQuoteClose = "\"'"

in your .vimrc. NOTICE THE "g:" instead of a "b:". The "g:" versions are 
"global," so they'll apply to EVERY TeX that you open. HOWEVER, if that 
TeX has a \usepackage line that calls a script that sets the "b:" 
versions to something, those "b:" versions will override your "g:" versions.


        I hope that helps --
        Ted



Stefan Söffing wrote:
> Hi all,
> 
> I'm using vim latexsuite for german text. The smart qoute feature is
> quite nice, since it replaces a " automatically with the "` or "' keys
> for german double qoutes. Unfortunately when opening a file in a new tab
> / split window, the " keypress is replaced by `` or '' which yields
> english quotes.
> 
> Is there anythind one can do to avoid this?
> 
> Regards,
>   Stefan
> 
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> Vim-latex-devel mailing list
> Vim-latex-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/vim-latex-devel
> 

-- 
Ted Pavlic <[EMAIL PROTECTED]>

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Vim-latex-devel mailing list
Vim-latex-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel

Reply via email to