如何让GVim内的终端对鼠标滚动做出反应?

如何让GVim内的终端对鼠标滚动做出反应?,vim,Vim,顺便说一句,我正在使用Hardy Heron Ubuntu版本。我不想给出这个答案,因为它没有什么帮助,但对我来说效果很好(Ubuntu Hardy上gvim中的滚轮)。 但也许我可以提出一些有助于调试问题的建议: 确认您正在运行“gvim”并尝试滚动出现的新窗口(即,您没有在xterm中运行vim并尝试使用鼠标滚动该窗口) 确认滚轮在其他应用程序中工作。如果您不确定,请使用“xev”确保X服务器正在查看滚动事件。 希望能有所帮助。试试: :设置鼠标=a “:帮助鼠标”说 滚轮在Gvim的

顺便说一句,我正在使用Hardy Heron Ubuntu版本。

我不想给出这个答案,因为它没有什么帮助,但对我来说效果很好(Ubuntu Hardy上gvim中的滚轮)。 但也许我可以提出一些有助于调试问题的建议:

  • 确认您正在运行“gvim”并尝试滚动出现的新窗口(即,您没有在xterm中运行vim并尝试使用鼠标滚动该窗口)
  • 确认滚轮在其他应用程序中工作。如果您不确定,请使用“xev”确保X服务器正在查看滚动事件。 希望能有所帮助。

    试试:

    :设置鼠标=a

    “:帮助鼠标”说


    滚轮在Gvim的其余模式下工作正常。出现问题的唯一地方是当控制台的“:”输出超过窗口大小时。(不过,当我在gnome终端和xterm下时,它的工作方式应该是这样的。)
    Enable the use of the mouse.  Only works for certain terminals
    (xterm, MS-DOS, Win32 |win32-mouse|, qnx pterm, and Linux console
    with gpm).  For using the mouse in the GUI, see |gui-mouse|.
    The mouse can be enabled for different modes:
        n   Normal mode
        v   Visual mode
        i   Insert mode
        c   Command-line mode
        h   all previous modes when editing a help file
        a   all previous modes
        r   for |hit-enter| and |more-prompt| prompt
        A   auto-select in Visual mode
    Normally you would enable the mouse in all four modes with: >
        :set mouse=a
    When the mouse is not enabled, the GUI will still use the mouse for
    modeless selection.  This doesn't move the text cursor.