Questions tagged [scrolling]

For questions about scrolling, and configuring the behavior of vim-scrolls

19 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
107 views

How to scroll back in the output of the last Ex command after pressing `g<`?

From :h g<: The g< command can be used to see the last page of previous command output. This is especially useful if you accidentally typed <Space> at the hit-enter prompt. You are ...
3
votes
1answer
387 views

Stray characters when scrolling in gvim

When scrolling with the mouse wheel, characters will often duplicate themselves on subsequent lines. For instance, if I'm scrolling down, I can sometimes see an open brace on its line and on the ...
2
votes
0answers
200 views

Flicker during scroll in single window?

If I run vim without tmux in urxvt v9.22 or xterm 330, it flicks after a full screen scroll. $ seq 1000 >test $ vim --clean test execute G or /13$ and nnnnnnn, you should see it flickers. If you ...
2
votes
0answers
27 views

Can I trigger a command when the status bar shows up or hides?

I'm using set laststatus=1 so the status bar is only visible when needed, e.g. to display file names when multiple splits are open. However, when the status bar shows up, the existing buffer seems to ...
2
votes
0answers
563 views

vim does not redraw the screen properly when scrolling the page up or down line-by-line

I am connected to a Windows SSH server from a Linux client, on Windows I end up in a Powershell. For small,quick edits I use the official vim windows console binary. It seems to work without ...
2
votes
0answers
131 views

Avoid Scrolling When Switching Back to a Buffer

When switching back to a buffer (.e.g with Ctrl^ and :bn, etc.), Vim tries to scroll whatever line the cursor was on last to the center of the window. I find this behavior extremely disorienting, so I ...
1
vote
0answers
430 views

Vim background colors render incorrectly

When I scroll inside vim white spaces seem to get highlighted. Also the background color is the one I use to signal the 80 column while it should be the same color as the terminal as it can be seen in ...
1
vote
0answers
35 views

No automatic scrolling when opening splits

When using plugins, splits are often created to show something, e.g. a quickfixlist or the taglist. If the split is opened (especially for horizontal splits), the original window is automatically ...
1
vote
0answers
82 views

Is there a keybinding that allows to scroll through the status line?

I was wondering if it was possible to scroll (left or right) along the status line so that the content (which could not be displayed due to the size of the window) could be seen. Perhaps there is a ...
1
vote
0answers
39 views

Keep `scroll` equal to current window height

Is there a way to update scroll every time window height changes? I know, that I can achieve the same behavior calling winheight(0) on each ctrld press as suggested here, but I'm curious if there is ...
1
vote
0answers
123 views

“scroll-smooth” remapping works only in second buffer

I tried to use the "scroll-smooth" tip given in :h tips (see :h scroll-smooth). The idea is to change <C-U> by a series of <C-Y>'s (and the same for <C-D> with <C-E>'s) : map ...
0
votes
0answers
77 views

Vim glitch screen while scrolling using <C-d>

I am using vim on wsl (ubuntu2004). It works just fine if it is slow scrolling however if I scroll it fasted using jump scrolling <C-d> or <C-u> it makes the screen have some rendering ...
0
votes
0answers
21 views

Less latency when scrolling with ctrl-e and ctrl-y

Is there a way to scroll faster using Ctrl-e and Ctrl-y? When I hold down Ctrl+e for example, it scrolls one line of text but then pauses for about half a second before scrolling the rest of the text. ...
0
votes
0answers
71 views

Vim not rendering text when moving up

I can move down until the last line of a file with no issues. However, when move up the text that was out of screen bounds does not render (as shown by the figure) until i press Ctrl + L to force ...
0
votes
0answers
130 views

How to map commands to key release events

When I press and hold j or k, they are repeated by the OS interface (I presume). Vim seems to scroll on each character produced by the keyboard. This makes the scroll pause shortly right after holding ...
0
votes
1answer
398 views

Scrolling with trackpad not working Macvim

I have just installed MacVim on my new Macbook. But I have a problem: on Linux I was able to scroll through my code—vertically moving my cursor—by using my trackpad. But on Macvim this doesn't work ...
0
votes
3answers
319 views

don't use scrolloff=5 for mouse clicks

I use (neo)vim with mouse=a and scrolloff=5. Clicking on one of the top or bottom five lines with the mouse causes the screen to jump (so that the new cursor position is more centered), which ...
0
votes
0answers
80 views

What is the [0/0] that pops up in corner of tmux vim if I try to scroll up?

When I'm in vim on tmux with terminal and I scroll up, the cursor will jump to where my mouse is and show a [0/0] on the right corner of my window. When that happens, I can't type or move the cursor ...
0
votes
0answers
43 views

Using horizontal scroll commands without setting `nowrap`

I tend to use a lot of vertical splits in my vim (version 8.1, via Arch Linux official repos) usage (on top of tabs, horizontal splits, tmux, etc.), and it gets frustrating when many of my lines wrap ...