Re: Conditional imap

2010-06-30 Thread Ben Fritz
On Jun 29, 6:04 am, gitterrost4 gitterro...@gmx.de wrote: Indeed it was latex-suite overriding the map from my tex.vim file. I fixed this by appending the line exe 'source '.fnameescape('~/.vim/ftplugin/tex.vim') to the file $VIM/ftplugin/latex-suite/main.vim This could certainly be done

Re: Conditional imap

2010-06-29 Thread gitterrost4
-- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php -- View this message in context: http://old.nabble.com/Conditional-imap-tp29008528p29020858.html Sent

Re: Conditional imap

2010-06-29 Thread Christian Brabandt
On Tue, June 29, 2010 9:22 am, gitterrost4 wrote: I did what you told me to (i dont want to use (Tab but just ( to remap to \left(). When I enter the command while i opended the Document everything works fine. But when I put the command in my .vimrc (or the tex.vim respectively) it stops

Re: Conditional imap

2010-06-29 Thread Christian Brabandt
On Tue, June 29, 2010 12:01 pm, Christian Brabandt wrote: To do that change the map to something like this: imap ( expr buffer … This should obviously be :imap expr buffer ( … regards, Christian -- You received this message from the vim_use maillist. Do not top-post! Type your reply below

Re: Conditional imap

2010-06-29 Thread gitterrost4
)!~texMath ? \\left( : ( : ( Thanks for helping :) -- View this message in context: http://old.nabble.com/Conditional-imap-tp29008528p29022437.html Sent from the Vim - General mailing list archive at Nabble.com. -- You received this message from the vim_use maillist. Do not top-post! Type your reply

Re: Conditional imap

2010-06-29 Thread Christian Brabandt
Hi gitterrost4! On Di, 29 Jun 2010, gitterrost4 wrote: Indeed it was latex-suite overriding the map from my tex.vim file. I fixed this by appending the line exe 'source '.fnameescape('~/.vim/ftplugin/tex.vim') to the file $VIM/ftplugin/latex-suite/main.vim I do not know, if this could

Re: Conditional imap

2010-06-29 Thread gitterrost4
environment before that. Thet's why I need to check 3 columns before the cursor. -- View this message in context: http://old.nabble.com/Conditional-imap-tp29008528p29027684.html Sent from the Vim - General mailing list archive at Nabble.com. -- You received this message from the vim_use maillist

Conditional imap

2010-06-28 Thread gitterrost4
the above mentioned. Is there any way of doing that? -- View this message in context: http://old.nabble.com/Conditional-imap-tp29008528p29008528.html Sent from the Vim - General mailing list archive at Nabble.com. -- You received this message from the vim_use maillist. Do not top-post! Type your

Re: Conditional imap

2010-06-28 Thread Christian Brabandt
On Mon, June 28, 2010 11:46 am, gitterrost4 wrote: I am using vim mostly for LaTeX-editing. now I would like to imap the sequence (Tab to \left(. The Problem being that \left( is only valid in Math-Mode. So I would like to first check (by regex) if I am in a Math-environment (e.g