视口导航不支持 vim 方向键的重新映射
我正在使用 colemak,因此我已经像这样重新映射了方向键
noremap n h
noremap e j
noremap i k
noremap o l
noremap h n
noremap j e
noremap k i
noremap l o
。问题是视口导航不支持这些键绑定。例如。当我按 ^w+n
时,我想将焦点转移到左侧的视口,但会打开一个新的空视口。
如何帮助单独重新绑定所有视口导航键?
I am using colemak and thus I have remapped my direction keys like so
noremap n h
noremap e j
noremap i k
noremap o l
noremap h n
noremap j e
noremap k i
noremap l o
The problem is that these keybindings are not honored by the viewport navigation. Eg. when I press ^w+n
I want to shift focus to the viewport to the left but instead a new empty viewport is opened.
How can I help rebinding all the viewport navigation keys individually?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这个主题在 colemak 论坛上已经被彻底打死了:
有许多指向
的链接,我觉得 Shai 自己的脚本走得太远了 - 所做的不仅仅是将 Colemak 集成到 vim 中(将 Cw 重新映射到关闭选项卡,例如,显示出对面向选项卡的编辑器的一些偏见,人们已经抱怨内部/排他性动议(diw、daB 等)不再起作用等)。
我想最好的建议,正如之前给出的那样,是坚持使用默认值并执行以下操作:
This subject has been somewhat beaten to death over at the colemak forums:
There are a number of listed links to
I feel Shai's own script is going way too far - doing way more than just integrate Colemak into vim (remapping C-w to Close Tab e.g., showing some bias towards tab-oriented editors, people have complained about in-/exclusive motions (diw, daB etc) not working any more etc).
I guess the best advice, as has been given before is to stick with the defaults and do:
我认为您必须通过执行以下操作来显式映射
窗口导航命令:I think you'll have to map the
<C-W>
window navigation commands explicitly, by doing something like: