Wednesday, July 28, 2010

Re: Feed keystrokes to Vim?

On Wed, 28 Jul 2010, Christian Brabandt wrote:

> Hi Benjamin!
>
> On Mi, 28 Jul 2010, Benjamin R. Haskell wrote:
>
> > I think I'm flipping between too many programming languages at the
> > moment. How do I feed a sequence of keys to Vim in Vimscript?
> >
> > E.g. Given: Goa<cr>b<esc>
>
> call feedkeys("Goa\<cr>b\<esc>")
>

Before, I'd tried: :norm Goa<lt>cr>b<lt>esc>

feedkeys is what I was thinking of.

Thanks to both you and Gary.

--
Best,
Ben

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

No comments: