I want to be able to click (or cmd+click on my Mac) on a function name in Gvim (or vim with set mouse=a
) and have it run the command :tag
to follow a ctag, but I don't know how to include a mouse click in a Vim mapping.
views:
85answers:
1
+2
A:
A good place to start:
:help click
:help mouse
Perhaps something like this will work:
:map <RightMouse> :tag <CR>
Marcin
2009-12-02 19:45:08