[vim/vim] `<C-R> <C-W>` does not work as expected (Issue #19886)

4 views
Skip to first unread message

Jan Britz

unread,
6:49 PM (2 hours ago) 6:49 PM
to vim/vim, Subscribed
janbritz created an issue (vim/vim#19886)

Steps to reproduce

  1. Start Vim and enter insert mode.
  2. Type a word, e.g. "test".
  3. Switch back to normal mode.
  4. Search for a substring which does not include the beginning of the word, e.g. type "/es" to search for "es".
  5. Press CTRL-R CTRL-W.
  6. Notice that the whole word gets appended to the search term: "/estest".

Expected behaviour

Let me quote :h incsearch:

CTRL-R CTRL-W can be used to add the word at the end of the current match, excluding the characters that were already typed.

The whole word should not have been appended in its entirety but only the "t": "/est".

Version of Vim

9.2.0277

Environment

OS: Arch Linux
Terminal: Alacritty 0.16.1
Shell: Bash 5.3.9


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

zeertzjq

unread,
7:03 PM (2 hours ago) 7:03 PM
to vim/vim, Subscribed
zeertzjq left a comment (vim/vim#19886)

The whole word should not have been appended in its entirety but only the "t": "/est".

Technically that doesn't match the description either, as the t before the es isn't added to the cmdline.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19886/4173463524@github.com>

Reply all
Reply to author
Forward
0 new messages