On Wednesday 12 August 2009 14:13:46 Edward Peschko wrote:
> > :normal /pattern^M where you get ^M by pressing <Ctrl-V> +
> > : Enter.
> >
> > Or use exe:
> > :exe "normal /pattern\<CR>"
> >
> > Or may be even feedkeys:
> > :call feedkeys("/pattern\n")
>
> Christian,
>
>
> First of all, thanks for the suggestions. feedkeys in fact
> does work, but exe "normal /pattern" with or without <CR> does
> not. Strange. I'm using 7.2 vim..
another method i've seen work is to
let @/ = pattern
normal n
and you'll probably want
normal gg
in front of that, YMMV
sc
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---