I'm not sure whether this is the best solution, since it overwrites the
current locale setting (I sometimes switch between german / english) -
but it works.

Thanks!

-- Stefan

Ted Pavlic schrieb:
> I haven't combed through how Vim-LaTeX works, but I have a feeling
> that when it loads main.tex, it does some special things to other
> files loaded in other buffers. However, it gets confused when they get
> opened in other tabs or split windows. In fact, it might suspend some
> of its rules in these other spaces because it's worried you're looking
> at a TeX log file or AUX file or something like that.
>
> Either way, I have a FEELING that adding that
>
> let g:Tex_SmartQuoteOpen = '"`'
> let g:Tex_SmartQuoteClose = "\"'"
>
> to your .vimrc will fix these problems. Does it?
>
> --Ted
>
>
> Stefan Söffing wrote:
>> Well, I'm not sure of this. The '\usepackage{ngerman}' line is located
>> in my 'main.tex' file which includes some other files, which do not have
>> this line in it at all. But the SmartQuotes do work for these files,
>> even without this line. But they do not work for a second (split/tab)
>> file.
>>
>> - Stefan
>>
>> Ted Pavlic schrieb:
>>> 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
>>>>
>>
>>
>


-------------------------------------------------------------------------
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