简体   繁体   中英

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 <Cq> <Cy>
But it does not seem to work... Do you have any suggestion ?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM