[英]vimrc window split nnoremap doesn't work from eclim project tree view
I use <cl>
to switch to the window split right of the active window split. 我使用<cl>
切换到活动窗口拆分的右侧窗口拆分。 I'm having an issue with eclim where <cl>
doesn't appear to do anything when the project tree view is the active window using this simple vimrc (note that <cw>l
does work): 我在eclim中遇到问题,当项目树视图是使用此简单vimrc的活动窗口时, <cl>
似乎没有执行任何操作(请注意<cw>l
确实起作用):
set nocompatible
nnoremap <c-l> <c-w>l
However, mapping to another key such as 'n' does change the active split to one window to the right using <cn>
: 但是,映射到另一个键(例如'n')确实会使用<cn>
将活动拆分更改为右侧的一个窗口:
set nocompatible
nnoremap <c-n> <c-w>l
I found the following line in eclim/autoload/eclim/tree.vim
: 我在eclim/autoload/eclim/tree.vim
找到了以下行:
nnoremap <buffer> <silent> <c-l> <c-l>:silent doautocmd eclim_tree User <buffer><cr>
Commenting out the line allows me to use <cl>
. 注释掉该行使我可以使用<cl>
。 However, I'm not entirely sure what the previous line is for and what impact commenting it out has. 但是,我不完全确定上一行是什么意思,注释掉它会有什么影响。 Is there a safer away to work around this while retaining my existing key bindings? 是否有更安全的方法来解决此问题,同时保留我现有的键绑定?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.