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

Re: Command switching to Normal mode with no mapping is used

Expand Messages
  • Marc Weber
    Hi Anna, ... Tell about the whole use case. Why do you want to detect switching to normal mode? There is InsertLeave. But this doesn t catch visual - normal.
    Message 1 of 5 , Mar 31, 2010
    • 0 Attachment
      Hi Anna,

      > I have found a workaround for it.
      > I want to detect when command-line mode starts.
      Tell about the whole use case. Why do you want to detect switching to
      normal mode?

      There is InsertLeave. But this doesn't catch visual -> normal.

      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

      To unsubscribe, reply using "remove me" as the subject.
    • Tony Mechelynck
      ... see :help CTRL- _CTRL-N Best regards, Tony. -- Celebrate Hannibal Day this year. Take an elephant to lunch. -- You received this message from the
      Message 2 of 5 , Jun 21, 2010
      • 0 Attachment
        On 01/04/10 05:52, anna wrote:
        > Hi all,
        >
        > Is there a command which can be used to go to Normal mode but no
        > mapping is used in the Normal mode?
        > That would be similar to :normal!, but in this case I can only start
        > from Command-Line mode.
        >
        > So, the command that I need is like
        > <Command>dd
        > I can start from any mode,<Command> will make Vim switch to Normal
        > mode, then it deletes the current line.
        >
        > Any advice on this matter?
        > Thank you very much.
        >
        > Anna
        >

        see :help CTRL-\_CTRL-N


        Best regards,
        Tony.
        --
        Celebrate Hannibal Day this year. Take an elephant to lunch.

        --
        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
      Your message has been successfully submitted and would be delivered to recipients shortly.