Hari Krishna Dara wrote:
When maps for mouse clicks are executed, can we have the location (in the form of line and column number) made available through v: variables? I just observed that getchar() works even with mouse clicks, but this is almost useless without knowing where the user clicked. Capturing mouse clicks along with <expr> maps or getchar() can do wonders if the mouse click position is also available.
The mouse position is already available from within a 'balloonexpr' expression, but I can't find it for the general case. Maybe an additional parameter value for the line() and col() functions? Let's say col("m") and line("m")? Perhaps also some way to find out over which window the mouse is hovering or has just clicked?
Best regards, Tony.
