![]() That's because vim restores the initial (usually non-raw) state of the terminal before running external commands via :!command, and then changes it back to raw mode upon replying to the "Press ENTER or type command" prompt, so any changes performed by command are lost.Īs an extra note, the common folklore spread on this site & elsewhere (that ^S/ ^Q are just an anachronistic carryover from the time before less and tmux, etc) is wrong software flow control is something you must use on any serial line without RTS/CTS out-of-band signaling ( especially on a line with high baud rate), and something that is totally useless on any kind of virtual tty. Running stty -ixon from inside vim doesn't work Xterm has a ttyModes resource (and -tm option) which can be used to set the initial modes, but which does not support -ixon. Generally (with other programs), there's no general solution -) It looks like they decided to make -ixon the default in recent versions of vim, so this is soon going to stop being an issue with vim (notice that the original patch from the originator of the issue was untested garbage, but the final patch got it right). If that creates problems with a non-tty vim like gvim (no idea, not able to test it), try this: silent !test -t 0 & stty -ixon Gonna have to delete these settings, probably.Add this to your ~/.vimrc: silent !stty -ixon This is now impossible to do, since I cannot touchpad-scroll at all while holding the ctrl key. I am regularly in the habit of holding down ctrl+shift keys, scrolling to a different location in the document, then clicking to a certain spot, to have the highlight applied from the previous caret position to the new one. Is there some way to resolve this? Is there a setting to tell Sublime to ignore scroll-zoom that doesn’t interfere with scrolling? Is there a different value besides null in the above settings that would prevent the abrupt stopping of scroll momentum?ĮDIT: here’s another likely deal breaker for me, for the above approach: it disables ALL scrolling while the ctrl key is held down. I’m guessing that the null command is being interpreted by Sublime to step in and do… nothing. ![]() I would prefer if Sublime just let the scrolling continue unaffected. If I scroll-flick upward or downward, and then hit the ctrl key, it no longer zooms, but now it just abruptly stops the scroll momentum movement. However, there’s one remaining quirk which I’d still love to resolve, if possible. Change font size with ctrl+scroll wheel The “solution” amounts to putting the following settings into a manually created settings file: [ Some googling turned up this stack exchange answer, and that mostly seems to work for me. I do however want to keep ctrl +/- zooming working, as I use that regularly! Anyway, I couldn’t find any setting for disabling the scroll-to-zoom (apologies if missed). I don’t care to have any scroll-to-zoom capabilities in Sublime, so I wanted to try to disable it entirely in Sublime. But I don’t like it at all in text apps where scrolling is common. There are some apps where ctrl+scroll zooming is nice, like image editors. ![]() This natural scrolling movement is quite nice, IMO.īut what now seems to happen is, if I press the ctrl key while the scrolling is happening (even just the momentum movement after the swipe is done), windows interprets this still as a scroll-to-zoom gesture, and Sublime responds accordingly by zooming the font size way down or up, respectively. I’m used to being able to scroll on the touchpad (two-finger up/down swipe), with momentum (flicking up or down, basically). So I’m stuck trying to “fix” it on a per-app basis. But I haven’t had any luck trying to find support info on undoing/disabling that Windows change, though. It never used to happen, but I’m sure Windows definitely changed something in the last 6 months or to make this start happening. I recently started noticing (thanks I think to some windows/driver changes) an annoying “feature” that affects certain apps, Sublime (and my terminal) included. I’m on Windows 10, and using ST 4 (build 4126).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |