Monday, June 28, 2010

Conditional imap

Hello,

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 count the number of "$"-signs) and if so, imap 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 reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment