[英]what does <C-\>^] mean in vim mapping?
Says in the gtags tutorials: Suggested map: 在gtags教程中说:建议的地图:
map <C-\>^] :GtagsCursor<CR>
Though the mapping of :GtagsCursor to ^] seems suitable, it will bring an
inconvenience in the help screen.
I guess ^] should mean CTRL-], but cannot find explicit descriptions about it in the chapter "key-mapping". 我猜^]的意思是CTRL-],但是在“键映射”一章中找不到关于它的明确描述。 Another question is if ^] is CTRL-], why use ^] here?
另一个问题是如果^]是CTRL-],为什么在这里使用^]?
This is indeed inconsistent, and would be more understandable as :map <C-\\><C-]>
. 这确实是不一致的,并且可以更容易理解为
:map <C-\\><C-]>
。 In Vim (as well as in terminals), the combination of [
+ Key
stands for the single <C-Key>
. 在Vim中(以及在终端中),
[
+ Key
的组合代表单个<C-Key>
。 You'd enter this via <CV><C-]>
, not as the two characters ^
and ]
. 您可以通过
<CV><C-]>
而不是两个字符^
和]
。
The mapping suggests the combination of Ctrl with two keys because <C-]>
by itself is already taken for keyword jumps. 该映射建议将Ctrl与两个键结合使用,因为
<C-]>
本身已用于关键字跳转。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.