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

Re: BUG vim 7.0-204?: autocmd CusorMoved vs select/visual mode vs :behave mswin vs norm!

Expand Messages
  • Thomas
    ... Okay, I now wrapped the norm! commands in a function and check via mode() if we are in select mode and then prepend to the command if that s the
    Message 1 of 6 , Mar 25, 2007
    View Source
    • 0 Attachment
      > When in Select mode you are still in sort-of Normal mode. Your
      > autocommand will have to take care of mode stuff by itself. You can use
      > CTRL-\ CTRN-N to make sure you are in Normal mode.
      >
      Okay, I now wrapped the norm! commands in a function and check via
      mode() if we are in select mode and then prepend <c-o> to the command if
      that's the case. It works without destroying the selection but it looks
      strange to me.

      Regards,
      Thomas.







      ___________________________________________________________
      Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de
    Your message has been successfully submitted and would be delivered to recipients shortly.