Re: defining imap that calls performs second call if cursor didn't move

2012-08-24 Thread skeept
The following mapping works: imap C-L C-O:call SelectImapOrUlti()CR I'm not 100% sure why C-R=SelectImapOrUlti()CR doesn't work, but I guess because it's only meant to insert text. Btw. the LaTeX-Suite might not be the best solution. Here's what the bot vimgor

Re: defining imap that calls performs second call if cursor didn't move

2012-08-22 Thread Simon Ruderich
On Mon, Aug 20, 2012 at 08:58:24PM -0700, skeept wrote: Thanks for the help, I still have some issues. I cannot make the first mapping work properly when called from the function, so I cannot make the hole thing work. Right now just for the first mapping the function looks like: function!

Re: defining imap that calls performs second call if cursor didn't move

2012-08-22 Thread Ben Fritz
On Wednesday, August 22, 2012 4:30:44 PM UTC-5, Simon Ruderich wrote: Btw. the LaTeX-Suite might not be the best solution. Here's what the bot vimgor (from Freenode/#vim) has to say about it: vimgor A slightly-maintained, buggy, over-complicated plugin intended

defining imap that calls performs second call if cursor didn't move

2012-08-20 Thread skeept
Hi, Suppose I have two functions Func1 and Func2. I would like to know if it is possible to define a imap that first calls Func1 (imap f1 c-r:call Func1()CR) if the cursor moves as a result of this call then we are done, otherwise it would call Func2 after calling Func1. Thank you. -- You

Re: defining imap that calls performs second call if cursor didn't move

2012-08-20 Thread skeept
On Monday, August 20, 2012 6:23:53 PM UTC-4, Simon Ruderich wrote: On Mon, Aug 20, 2012 at 01:42:04PM -0700, skeept wrote: Hi, Suppose I have two functions Func1 and Func2. I would like to know if it is possible to define a imap that first calls Func1 (imap f1 c-r:call