[英]Remap the scroll up command in vim
I want to remap the Ctrl + y command in vim (scroll up command) to Ctrl + q. 我想将vim中的Ctrl + y命令(向上滚动命令)重新映射为Ctrl + q。 I tried to do
:map <Cq> <Cy>
我试图做
: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? 这只会影响Linux终端(不影响GVIM)以及Ctrl + S吗? Then, you need to disable the terminal's flow control commands, by putting the following into your
~/.bashrc
: 然后,需要通过将以下内容放入
~/.bashrc
来禁用终端的流控制命令:
stty start undef stop undef
PS: You should use :noremap
; PS: 您应该使用
:noremap
; it makes the mapping immune to remapping and recursion. 它使映射不受重新映射和递归的影响。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.