Scrolling inside Vim in Mac's Terminal

后端 未结 11 2064
野性不改
野性不改 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:13

    I'm using xterm in X11 (XQuartz 2.3.4) and vim works very fine with mouse and also suport 256 colors.

    Here is the ~/.Xresources I use to make my xterm nicer in X11:

    XTerm*faceName: Lucida Sans Typewriter Regular
    XTerm*faceSize: 9
    XTerm*utf8: 1
    
    xterm*saveLines: 1000
    xterm*jumpScroll: true
    !xterm*awaitInput: true
    !xterm*multiScroll: true
    
    XTerm*scrollBar: false
    xterm*scrollbar*thickness: 16
    xterm*rightScrollBar: true
    
    XTerm*foreground: white
    XTerm*background: grey10
    !XTerm*background: black
    XTerm*cursorColor: yellow
    
    xterm*visualBell: false
    
    xterm*loginShell: true
    

    Little tips, to remove the bell sound in X11's xterm type this command:

    xset b 0
    

提交回复
热议问题