I am writing a plugin for commenting code in a special way, and it should act a little differently when called in visual or normal modes.
Is there a function or some way to determine the mode in which the user was (was) when the function was called?
izhak
source share