Skip to content

Shift+Enter same as CTRL-F? #1256

Answered by ychin
citizenmatt asked this question in Q&A
Jul 27, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

This is the correct but confusing behavior. In Vim, <CR> acts just like <Down> in normal mode, which just moves cursor down by one line. If you do :help <S-Down>, it does the same thing as <PageDown> and CTRL-F, which also means <S-CR> does the same thing and move down half a page.

<S-CR> doesn't work in a lot of terminals though as this is not a mapping you can use. Thererfore it's just using the regular <CR>even when you press shift.

You can always remap <S-CR> to something else if there is aparticualr need for it.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@citizenmatt
Comment options

Answer selected by citizenmatt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants