50241functions for several modes?
- May 18, 2004I 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,
- Next post in topic >>