Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to scroll in insert mode?

Tags:

vim

Is there a default key for scrolling in insert mode? I know that I could just

:imap <F5> <ESC><C-e>a
:imap <F6> <ESC><C-y>a

but I'm wondering if there's any key binding there by default.

like image 383
Tim Avatar asked Oct 27 '25 13:10

Tim


1 Answers

For completeness, there are two dedicated commands for scrolling in insert mode, CTRLXCTRLE and CTRLXCTRLY. They are probably the proper ones to map.

See the documentation here: :h i_CTRL-X_CTRL-E.

In normal mode CTRLE and CTRLY do the same thing, I use them quite often.

like image 137
glts Avatar answered Oct 30 '25 08:10

glts



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!