开发者

Mouse input in gvim

Can standard mouse input be customized in vim (in my case gvim)? Plugins are acceptable options too.

I'm specifically interested in "overriding" a double-click on a word开发者_运维技巧, so that instead of just highlighting the word, gvim does a search and thus highlights all instances of this word in the file. I've seen this functionality in other editors and found it very useful.


See :help double-click. It should have everything you need. For example from the help page:

An example, for using a double click to jump to the tag under the cursor:

:map <2-LeftMouse> :exe "tag ". expand("<cword>")<CR>


I don't regarding mouse, but you can press */# to search word under cursor forward/backward.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜