On Sat, 23 Sep 2006 17:08:39 +0200
Luc Hermitte <[EMAIL PROTECTED]> wrote:
[snip]
> > I guess it is in the mark for place of last change, but I just cant
> > get iabbrev to execute my movement command (other than using <left>
> > <right> <up> <down>). Is there any way to do this?
>
> I finally converged to the use of search(), on a placeholder
> regex-pattern. This way neither @/ nor the search history are messed
> up by irrelevant patterns.
I have been playing around with the search() but I couldn't quite get
the hang of it.
Could you maybe give me an example on how to use it in relation to an
abbrev. What I tried was:
:iabbrev for( for
(!cursor!;<+++>;<+++>){\n<+++>\n}<C-R>=search('!cursor!',b)<cr>c/+>/e<cr>
but this inserts the linenumber where it finds the placeholder.
I would rather like it ro remove the placeholder and move the cursor
there.
any ideas?
--
Kim Schulz | Private : http://www.schulz.dk
[EMAIL PROTECTED] | Business: http://www.devteam.dk
+45 5190 4262 | Sparetime: http://www.fundanemt.com