Re: [Vim-latex-devel] newbie question
Brought to you by:
srinathava,
tmaas
From: Alexandre R. <fre...@gm...> - 2007-03-20 17:43:20
|
Thanks, Vaidotas. Your tip about the filetype helped me to find out a solution. The problem was the default type for .tex file was plain tex and no latex. I managed to change this with the following line in my .vimrc let g:tex_flavor =3D "latex" I also solved the second problem (using your first method), however I still have a problem with "=E9". When I type 'e (in the insert mode) the cursor just move back one character if it is at the end of the line. Do you know how to get =E9? Thanks, Alexandre On 3/20/07, Vaidotas Zemlys <ze...@gm...> wrote: > > 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 > (only > > .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 whenev= er > 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 > |