Wednesday, November 21, 2012

Re: exec "normal i"

On 2012-11-20, oversky wrote:

> On 11月21日, 下午1時58分, Gary Johnson <garyj...@spocom.com> wrote:
> > On 2012-11-20, oversky wrote:
> > > I want a function ending in the insert mode.
> > > However,  exec "normal i" or exec "normal a" keeps staying in the
> > > normal mode.
> > > Is it possible to do what I want?
> >
> >     :help :startinsert

> In the document, it says
>
> When the ! is included it works like "A", append to the line.
>
> is it possible to make it works like "a", so the cursor stay in the
> current position?

You could move the cursor to the right before executing
:startinsert, like this:

normal l
startinsert

Regards,
Gary

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