Re: [Vim-latex-devel] Vim-LaTeX problem with "
Brought to you by:
srinathava,
tmaas
From: Benji F. <be...@me...> - 2003-01-14 14:12:23
|
Alexander Schatten wrote: > First of all, thank you very much for the vim-latex package. > > unfortunately I have a small, but awkward problem. When you press the " > key, vi replaces it with `` at the beginning or '' at the end of the > quotation. > > this is nice, when you do edit english texts, unfortunately, this is no > such good idea, when I edit german texts. because in german it should > start with "`. > > even worse, I do not see a possibility to get the " to do it manually, > because it is always immediately replaced by ``. > > > could you give me a hint how to solve this problem? This is a documentation problem. Have a look at the file ftplugin/latex-suite/texrc . First, see the installation instructions in the comments at the top. Then, search for /Quote/ and you will get to the lines === " Pressing " (english double quote) will insert `` or '' by making an " intelligent guess about whether we intended to open or close a quote. TexLet g:Tex_SmartKeyQuote = 1 " Users of other languages might want to change the quote characters to suit " their locale. TexLet g:Tex_SmartQuoteOpen = "``" TexLet g:Tex_SmartQuoteClose = "''" === Just change the last two lines. These changes will not take effect until you restart vim. You can change the variables on the fly: :let Tex_SmartQuoteOpen = '"`' should work (untested). (I hope the closing character is something like '", which you would have to enter as "'\"", and not "', because I think the system will be buggy if the open and close quotes start with the same character. In this case, you can turn it off completely with :let Tex_SmartKeyQuote = 0 You may have to do this in the texrc file; I am not sure if it will work on the fly.) HTH --Benji Fisher |