How to map arrow keys with an AutoHotKey script like Vim?

╄→尐↘猪︶ㄣ 提交于 2020-01-01 19:41:54

问题


Referring to question Windows 7 Map CTRL + j to the Down Arrow Key

How can I map the arrow keys with AutoHotKey like vim?

Ctrl+h = Move left 
Ctrl+j = Move down 
Ctrl+k = Move up 
Ctrl+l = Move right

回答1:


Make an AutoHotKey-script like this:

^h::
   Send, {Left down}{Left up}
Return

^j::
   Send, {Down down}{Down up}
Return

^k::
   Send, {Up down}{Up up}
Return

^l::
   Send, {Right down}{Right up}
Return


来源:https://stackoverflow.com/questions/31425458/how-to-map-arrow-keys-with-an-autohotkey-script-like-vim

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!