Vim 自动热键重新映射alt+;j向左,但alt+;班次+;j不';t选择左或不选择alt+;ctr&x2B;j如果getKeyState不工作,请移动插入符号
基本上 它的灵感来自Vim,我想使用一个键(例如Alt,F1)组合(+I J K L)来映射到箭头键 在自动热键中已经完成了什么Vim 自动热键重新映射alt+;j向左,但alt+;班次+;j不';t选择左或不选择alt+;ctr&x2B;j如果getKeyState不工作,请移动插入符号,vim,keyboard-shortcuts,autohotkey,Vim,Keyboard Shortcuts,Autohotkey,基本上 它的灵感来自Vim,我想使用一个键(例如Alt,F1)组合(+I J K L)来映射到箭头键 在自动热键中已经完成了什么 Ralt & j::send{Left} Ralt & k::send{Right} 。。。 现在我把Alt+I作为up等,这对我来说很好,但是当你按下时问题就来了 Ralt+Shift+j (Suppose to select the last charater) Ralt+Ctrl+j (Suppose to move a caramel
Ralt & j::send{Left}
Ralt & k::send{Right}
。。。
现在我把Alt+I作为up等,这对我来说很好,但是当你按下时问题就来了
Ralt+Shift+j (Suppose to select the last charater)
Ralt+Ctrl+j (Suppose to move a caramel text)
这种组合将不起作用,它只是被覆盖为基本的向左移动光标
即使我将if/while语句与GetKeyState
一起使用,它也不会起作用
if GetKeyState("Shift","P")
Ralt+j::send +{Left}
This kind of stuff didn't work
有什么想法吗?这将使编码非常有效,而不必移动右手
提前感谢。您错过了两件事:
#
符号+
而不是以前使用的&
李>
请参见以下修改:
RAlt & j:: Send {Left}
RAlt & k:: Send {Right}
#If GetKeyState("Shift","P")
RAlt & j:: Send +{Left}
RAlt & k:: Send +{Right}
; Close with #If to remove the context or simply start another '#If GetKeystate ....'