Re: [Vim-latex-devel] newbie question
Brought to you by:
srinathava,
tmaas
From: Vaidotas Z. <ze...@gm...> - 2007-03-20 15:55:55
|
Hi, On 3/20/07, Alexandre Rosas <fre...@gm...> wrote: > Hi, > I've just got into the vim-latex world and I'm having some problems. > * The first one is that my .tex files are not detected as latex files (on= ly > .latex files are). How can I make vim understand > that the .tex files are in fact latex files? > Hm, for me it works with vim 7.0, but I have older vim-latex version. It should be related to filetype selection in vim. Unfortunately I do not know enough to help you here. > * Often I need to type =E3 and my keyboard is configured so that whenever= I > type ~a I get =E3. However, vim-latex seems to bind > ~a to \cite{}. I've created the file .vim/after/ftplugin/tex.vim with > the following line: > call IMAP('~a', '=E3', 'tex') > but it did not work at all. > > By the way, I'm using vim 7.0 on linux (ubuntu edgy) and > vim-latex latexSuite20060325.tar.gz > > It is actualy a problem of vim, not vim-latex. For vim alt-c and =E3 is the same. When you press alt-c you get =E3, and when you press =E3 vim generates alt-c. Since vim-latex uses mapping alt-c, you have the problem. I searched a bit, but found nothing how to turn of this behaviour. You can solve this problem in following ways: 1. Turn off vim-latex mapping alt-c. You have to have line TexLet g:Tex_AdvancedMath=3D0 in your texrc file. There is an explanation there, what else you will lose by setting this option 2. Enter =E3, like diacritic, by pressing ctrl-k, then a, then ?. 3. Manually change alt-c mapping (actualy m-c) in brackets.vim to some other mapping you like. 4. Find how to turn off this unwanted vim behaviour, and share it with me:) Vaidotas |