[英]Alert sound in Vim after placing comments after key mapping in .vimrc
我正在尝试映射以下键来切换Vim中的拆分。
nnoremap <s-j> <c-w>j " Shift + j to switch the split below
nnoremap <s-k> <c-w>k " Shift + k to switch the split above
nnoremap <s-h> <c-w>h " Shift + h to switch the split on the left
nnoremap <s-l> <c-w>l " Shift + l to switch the split on the right
效果很好,除了执行切换时我听到警报声。 例如,按Ctrl+w
再按j
时没有警报声,但是Shift+j
有警报。
我怀疑发生了错误,并且不喜欢不了解就关闭警报声音。
也许重新映射不只是Ctrl+w
+ j
?
vim专家有什么想法吗?
删除您的评论可能会解决此问题。 参见:help :quote
。
也…
<sj>
当您可以简单地使用J
? :help J
, :help L
, :help H
和:help K
都是非常有用的命令。 您确定要覆盖它们吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.