首先搜索leftmouse 找到双击的map 注释掉
然后添加下面的脚本
" Contributed by Bindu Wavell
" attempt to perform single click mapping, it would be much
" nicer if we could nnoremap <buffer> ... however vim does
" not fire the <buffer> <leftmouse> when you use the mouse
" to enter a buffer.
let clickmap = ':if bufname("%") =~ "__Tag_List__" <bar> ' .
/ 'call <SID>Tlist_Window_Jump_To_Tag("useopen") ' .
/ '<bar> endif <CR>'
if maparg('<leftmouse>', 'n') == ''
" no mapping for leftmouse
exe ':nnoremap <silent> <leftmouse> <leftmouse>' . clickmap
else
" we have a mapping
let mapcmd = ':nnoremap <silent> <leftmouse> <leftmouse>'
let mapcmd = mapcmd . substitute(substitute(
/ maparg('<leftmouse>', 'n'), '|', '<bar>', 'g'),
/ '/c^<leftmouse>', '', '')
let mapcmd = mapcmd . clickmap
exe mapcmd
endif
本文介绍了一种在Vim编辑器中实现单击鼠标左键进行特定操作的方法。通过修改配置文件中的脚本,可以使得点击行为符合用户的个性化需求。
1644

被折叠的 条评论
为什么被折叠?



