Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/vim/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vim 自动热键重新映射alt+;j向左,但alt+;班次+;j不';t选择左或不选择alt+;ctr&x2B;j如果getKeyState不工作,请移动插入符号_Vim_Keyboard Shortcuts_Autohotkey - Fatal编程技术网

Vim 自动热键重新映射alt+;j向左,但alt+;班次+;j不';t选择左或不选择alt+;ctr&x2B;j如果getKeyState不工作,请移动插入符号

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

基本上

它的灵感来自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 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 ....'