[vim/vim] More Prompt - Go Forward/Backward One Screen With CTRL-F/CTRL-B (PR #18545)

23 views
Skip to first unread message

bfoersterling

unread,
Oct 11, 2025, 3:58:42 AM10/11/25
to vim/vim, Subscribed

Changes

Current Behavior

Currently in vims "more prompt" using ctrl + f/b is not possible.

more_prompt_usage.png (view on web)

After The Change

Move forward or backward one screen in a more prompt with ctrl + f/b is possible.

Rationale

Inside vim you move forward/backwards one screen with ctrl + f/b.
Not being able to do this in a more prompt is inconsistent.

I use ctrl + f/b in a lot of tools (bat, less, zathura) and always
trip over this not working in vims "more prompt".


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/18545

Commit Summary

File Changes

(2 files)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18545@github.com>

Christian Brabandt

unread,
Oct 11, 2025, 5:04:13 AM10/11/25
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#18545)

thanks. Can you please create a test for this?


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18545/c3393087085@github.com>

bfoersterling

unread,
Oct 11, 2025, 10:49:23 AM10/11/25
to vim/vim, Push

@bfoersterling pushed 1 commit.

  • 36fc0d1 added tests for CTRL-F and CTRL-B to Test_message_more()


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18545/before/ef91ac88797f32326d0549f6d93e3e3a38956ac5/after/36fc0d1f6c56a86ebd109504e462e94cb738e87f@github.com>

bfoersterling

unread,
Oct 11, 2025, 11:35:57 AM10/11/25
to vim/vim, Subscribed
bfoersterling left a comment (vim/vim#18545)

thanks. Can you please create a test for this?

Yes, sorry, I have added the tests to Test_message_more().

I have noticed one edge case though.
When being at the bottom of the more prompt CTRL-B/CTRL-F will quit the more prompt.
Just typing f or b will not do this.
I have not figured out why this happens.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18545/c3393430814@github.com>

bfoersterling

unread,
Oct 11, 2025, 1:59:41 PM10/11/25
to vim/vim, Push

@bfoersterling pushed 1 commit.

  • 24bc538 fixed quitting more prompt at the end when hitting ctrl-f or ctrl-b

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18545/before/36fc0d1f6c56a86ebd109504e462e94cb738e87f/after/24bc5387dfb33ef095a89d6021d5c2a87f952102@github.com>

bfoersterling

unread,
Oct 11, 2025, 2:48:11 PM10/11/25
to vim/vim, Push

@bfoersterling pushed 1 commit.

  • 24356ea added test for screen scrollback with ctrl f and ctrl b

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18545/before/24bc5387dfb33ef095a89d6021d5c2a87f952102/after/24356eab24a45113e6da237b05f6c1639c6d2eca@github.com>

bfoersterling

unread,
Oct 11, 2025, 3:25:53 PM10/11/25
to vim/vim, Push

@bfoersterling pushed 1 commit.

  • d78dae8 added test for ctrl-f at end of more prompt

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18545/before/24356eab24a45113e6da237b05f6c1639c6d2eca/after/d78dae8864343eedd66dc14b4afa375bafd47ac4@github.com>

bfoersterling

unread,
Oct 11, 2025, 3:55:54 PM10/11/25
to vim/vim, Subscribed
bfoersterling left a comment (vim/vim#18545)

So the issue is fixed, the keys needed to be added to wait_return() as well.

Now I only need to get the code coverage.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18545/c3393623233@github.com>

bfoersterling

unread,
Oct 12, 2025, 12:39:59 AM10/12/25
to vim/vim, Push

@bfoersterling pushed 1 commit.

  • ceea222 added test for CTRL-B at end of more prompt

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18545/before/d78dae8864343eedd66dc14b4afa375bafd47ac4/after/ceea222045bfea7529b5279112640e9fde2e3b16@github.com>

bfoersterling

unread,
Oct 12, 2025, 1:23:29 AM10/12/25
to vim/vim, Push

@bfoersterling pushed 1 commit.

  • 2e740f1 removed previously added test that does not increase code coverage

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18545/before/ceea222045bfea7529b5279112640e9fde2e3b16/after/2e740f11f477b19687a100891e040082540f60f3@github.com>

Christian Brabandt

unread,
Oct 12, 2025, 10:21:45 AM10/12/25
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#18545)

Thanks. I think it should be fine, code coverage display is a bit flaky anyhow, so don't worry too much


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18545/c3394531835@github.com>

Christian Brabandt

unread,
Oct 12, 2025, 10:29:35 AM10/12/25
to vim/vim, Subscribed

Closed #18545 via fcf4c43.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18545/issue_event/20231808329@github.com>

Reply all
Reply to author
Forward
0 new messages