LLenain
LLenain

Reputation: 549

Remap the scroll up command in vim

I want to remap the Ctrl + y command in vim (scroll up command) to Ctrl + q. I tried to do :map <C-q> <C-y>
But it does not seem to work... Do you have any suggestion ?

Upvotes: 1

Views: 655

Answers (1)

Ingo Karkat
Ingo Karkat

Reputation: 172520

Does this only affect the Linux terminal (not GVIM), and also Ctrl + S? Then, you need to disable the terminal's flow control commands, by putting the following into your ~/.bashrc:

stty start undef stop undef

PS: You should use :noremap; it makes the mapping immune to remapping and recursion.

Upvotes: 2

Related Questions