Smooth Scrolling in vim #1307
Replies: 2 comments 1 reply
-
Hi @mikecgithub We can not change Thanks for pointing our some issues with documentation. |
Beta Was this translation helpful? Give feedback.
-
I think what you want is actually smooth scrolling by pixel, not by line, and that for a specific rectangular region within your text application, e.g. vim. I am so precise in saying that, because to date, no terminal emulator can do that. Not yet at least, because in order to achieve this, a protocol extension would needed to be invented and implemented. Such a "VT extension" needs to be carefully designed, because it usually comes with a lot of corner cases and potential side effects (in this case more likely than others). And then the next challenge is, to get text applications to adapt to it, e.g. vim/neovim. And they are usually quite conservative and only implement new things if at least 2 or 3 (bigger) terminals already provide that feature, which is a classic chicken and egg problem, because the bigger terminal projects are usually also quite conservative. I'm not saying this will never happening, but it's more likely that (if ever) it'll be projects like Contour, Foot, WezTerm, or Ghostty picking such new ideas up, and then only time will tell if TUI apps will follow up or not. We'll see. On the other matter, our own @Yaraslaut instead of applying |
Beta Was this translation helpful? Give feedback.
-
I always wanted to do this if I ever wrote a terminal, but I don't know how.
When I open code in vim, and use ctrl-e or ctrl-y to scroll up/down, the text is unreadable because it jumps one line at a time. I don't think this is necessary, especially with GL acceleration. Sure, the CR jumps one line at a time, but once you know that, you can scroll the pix buff up at 30, or 60 fps, or whatever the user's resolution is. then the text will be as readable while scrolling as it is on a website.
Also, there is a bug in the documentation, http://contour-terminal.org/configuration/colors this explains how to define color schemes, but it never says how to switch from one scheme to another. That should be the first thing in the docs under "color", in my opinion.
Thank you for all the hard work you have put into this project, I wish you the best!
Beta Was this translation helpful? Give feedback.
All reactions