在Vim中,将鼠标单击移动添加到跳转列表中

在Vim中,将鼠标单击移动添加到跳转列表中,vim,Vim,在vim中,当我使用set mouse=a并单击某个位置时,该移动不会添加到跳转列表中 有没有办法实现这一点?或者使用插件或函数?您可以增强鼠标命令以设置跳转: " <LeftMouse> Add original position (from before the mouse jump) to " the jump list. nnoremap <LeftMouse> m'<LeftMouse> “将原始位置

在vim中,当我使用
set mouse=a
并单击某个位置时,该移动不会添加到跳转列表中


有没有办法实现这一点?或者使用插件或函数?

您可以增强鼠标命令以设置跳转:

" <LeftMouse>       Add original position (from before the mouse jump) to
"                   the jump list.
nnoremap <LeftMouse> m'<LeftMouse>
“将原始位置(从鼠标跳跃之前)添加到
“跳转列表。
nnoremap m'

只有跳转被添加到跳转列表中。如果要将动作添加到跳转列表中,请使用跳转。