Wednesday, July 28, 2010

Re: Feed keystrokes to Vim?

Excerpts from Benjamin R. Haskell's message of Wed Jul 28 20:00:13 +0200 2010:
> E.g. Given: Goa<cr>b<esc>
>
> How do I get Vim to execute the 'G' command, 'o' command, insert an 'a'
> followed by a newline and a 'b', then exit insert mode?
>
> Is the easiest way to create a script-specific mapping (via :exe ':map
> <script> ...')?

There is also
:call append(line('$'),["before last","append last")

Marc Weber

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