Hi, On 3/20/07, Alexandre Rosas <[EMAIL PROTECTED]> 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 ã and my keyboard is configured so that whenever I > type ~a I get ã. 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', 'ã', '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 ã is the same. When you press alt-c you get ã, and when you press ã 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=0 in your texrc file. There is an explanation there, what else you will lose by setting this option 2. Enter ã, 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 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Vim-latex-devel mailing list Vim-latex-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vim-latex-devel