I also use X11 (XQuartz) all day as well as terminal sessions, with various Linux, Solaris, AIX X11 displays being sent back to my iMac at work, frequently using gvimdiff. However, the mouse scroll speed really sucks compared to the regular Terminal app. 41 I'd like to use the mouse in Vim only for scrolling (not to enable other Vim modes or otherwise interact with Vim). The shell survives disconnects (e.g., connection failure, IP changes, laptop reboots) and supports scrollback with a touchpad, copy-paste, and colors. His solution uses a single window/tab to connect to a remote shell. NOTE: I have nothing against X11 and xterm. 4 Answers Sorted by: 55 Filippo Valsorda has a solution for OS X that incorporates iTerm 2, tmux, and mosh. After 'set mousea' in vim, when scrolling down, the cursor will stay on the sixth line. It has an option to automatically load anything selected into the copy/paste buffer. The mouse scroll in the windows terminal when using vim is different from iTerm2 and Konsole. It will allow you to define what a double-click selection thinks is a word. ITerm will give you Tabbed windows just like Terminal (actually had Tabbed windows years before Terminal.app). an older but still viable version (I used this on my Snow Leopard 10.6.8 system) I have been using as my terminal emulator for years, and at work I live in terminal sessions, ssh'ed into various Linux, Solaris, AIX platforms. Instead of using X11 and xterm, consider giving iTerm a try. " setting, as that may affect the Terminfo database entry, which Vim uses to decide on what it does with various keyboard escape keys for input as well as displaying output (not sure if that would affect scrolling input, but it is worth a shot). And try things like changing the "Declare terminal as. Goto iTerm2 > Preferences > Advanced In Mouse section, set Scroll wheel sends arrow keys when in alternate screen mode to Yes iTerm advanced preferences Done Now the content will get scrolled correctly within tmux window pane in scoll mode. But you should at least look through the various Terminal -> Preferences to see if there is any configuration option that is telling the Terminal how to treat scroll operations. The fix Appraently there is a quick fix with iTerm2 in Mac. While I do not have Yosemite up and running at the moment, I cannot actually play with Yosemite Terminal.app. 2 Answers Sorted by: 9 The mode is referred to as 'copy mode' and as long as youre running tmux 1.5 or higher you can add: setw -g mode-mouse on to your /.nf file and tmux will automatically enter and exit copy mode when you use the scroll wheel on your mouse.
0 Comments
Leave a Reply. |