Hi Edward!
On Mi, 12 Aug 2009, Edward Peschko wrote:
> I've been automating vim lately, and am running into a curious
> limitation. I try:
>
> :normal /pattern
Because you need to end the search command with an enter. So try this:
: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")
> and vim does not pick this up and do the search as expected. But
>
> :normal j
Because you do not need to press Enter after pressing the j command.
>
> or any other key combo DOES work as expected. Why?
regards,
Christian
--
SIGFUN -- signature too funny (core dumped)
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---