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

50241functions for several modes?

Expand Messages
  • Jorge Almeida
    May 18, 2004
    • 0 Attachment
      I want to make a function that would be called from a menu, either in
      insert or visual mode. The behavior should depend on the mode. Example:
      if in visual mode, wrap the selected text with something; if in insert
      mode, write something else at the insertion point. Can I use some
      variable in the code to tell which mode the function was called from?
      (And is this the right approach at all? I want one menu entry, not two,
      of course.)

      Thanks.

      Jorge Almeida
    • Show all 9 messages in this topic