I would like to execute either CTRL-L or i_CTRL-L into a vimscript in
order to leave insert mode.
How can I do ?
Thank you
Try
:stopinsert
Ben.
stopinsert does not leave insertmode under vimscript
Note that I do
argdo! w!
argdo! bd!
before
stopinsert
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.