On Wednesday, May 16, 2012 8:39:58 PM UTC-5, JohnBeckett wrote:
> howardb21 wrote:
> > I want to write a user command that executes this command:
> >
> > :abbreviate <exrc> ihs somefunction(ihs,irs) <CR>
> >
> > where ihs and irs are strings
> 
> I expect you mean <expr> and not <exrc>?
> 
> I must have missed the original thread, but I think it would be
> good to start again with a statement of what problem needs to be
> solved. I'm wondering why 'ihs' appears twice, and what would
> you want the user command to be?
> 
> How about a simple example showing what you would like to enter
> and what it should do.
> 

It's been a while, but I have a vague memory. I think he's trying to set up an 
abbreviation the same way in a loop or function or something, with different 
left side and right side.

I think he wants something like:

exec 'abbreviate <expr> '.lhs.' somefunction('.lhs.','.rhs.')'

But I'd need to dig up the old thread to be sure.

Or howardb21, you could post the actual problem again.

-- 
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

Reply via email to