Loading ...
Sorry, an error occurred while loading the content.

134645Re: exec "normal i"

Expand Messages
  • Gary Johnson
    Nov 21, 2012
      On 2012-11-20, oversky wrote:

      > On 11月21日, 下午1時58分, Gary Johnson <garyj...@...> 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


      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
    • Show all 6 messages in this topic