Scrolling inside Vim in Mac's Terminal

后端 未结 11 2058
野性不改
野性不改 2020-12-02 04:46

I\'ve been googling around trying to figure out if it\'s possible to use my mouse wheel to scroll while inside Vim in Mac\'s Terminal, with no luck. It seems as if only X11

相关标签:
11条回答
  • 2020-12-02 05:25

    Use gVim, which gives you a text editing environment in a window you can scroll. Terminal is not involved when using gVim.

    0 讨论(0)
  • 2020-12-02 05:29
    • Termanal Menu > View > Allow Mouse Reporting
    • Terminal Menu > Preferences > Keyboard > Scroll alternate screen
    0 讨论(0)
  • 2020-12-02 05:29

    I would recommend using iTerm - it has so many advantages over Terminal eg Mouse support, 256 colors, sensible copy and paste (auto-copy, word/url selection with double click, middle click paste)...

    0 讨论(0)
  • 2020-12-02 05:30

    When using iTerm create a .vimrc file (if not already there) in your home folder and add the line:

    :set mouse=a
    

    Scrolling down in vim to view a file works after this.

    0 讨论(0)
  • 2020-12-02 05:31

    http://bitheap.org/mouseterm/

    Use MouseTerm (and do make sure to install SIMBL first!) and scrolling will work like a charm, even remote, using Mac Terminal.

    You need to fully quit the Terminal application (Command+Q) and then launch it again after installing MouseTerm.

    0 讨论(0)
提交回复
热议问题