Wednesday, February 24, 2010

Re: How to leave insert mode with a vimscript command

On Feb 23, 2:45 am, epanda <callingel...@hotmail.fr> wrote:
>
> stopinsert does not leave insertmode under vimscript
>

Yes, it does. That's the only thing it ever does. That's the command's
entire purpose. What do you see, instead? What *exactly* are you
trying to accomplish?

> Note that I do
> argdo! w!
> argdo! bd!
>
> before
> stopinsert

Commands you execute before :stopinsert are irrelevant. :stopinsert
stops insert mode from within a script, as soon as possible.

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments: