Vim 按某个键查找其标识符
在Emacs中,我可以按Vim 按某个键查找其标识符,vim,Vim,在Emacs中,我可以按C-hk,然后键入一个键以查找该键的标识符。(例如,EmacsC-hk会告诉我的Emacs名称是RET) vim中是否有相当于C-h k的钥匙?附录B中有一个特殊钥匙列表 还有一张便条 If you want to find the name of a key on the keyboard, you can go into Insert mode and press CTRL-K key The <> name of the key will be inse
C-hk
,然后键入一个键以查找该键的标识符。(例如,EmacsC-hk
会告诉我
的Emacs名称是RET
)
vim中是否有相当于C-h k
的钥匙?附录B中有一个特殊钥匙列表
还有一张便条
If you want to find the name of a key on the keyboard,
you can go into Insert mode and press CTRL-K key
The <> name of the key will be inserted.
This works for the function keys and many other keys.
如果要在键盘上查找某个键的名称,
您可以进入插入模式并按CTRL-K键
将插入密钥的名称。
这适用于功能键和许多其他键。
@Natan:这是正确的:^M
是Enter
的终端键代码。这在命令行模式下(以及在正常模式下)也是可能的:按Ctrl
+V
,然后按组合键。@Natan:当然。例如:map^M o
,其中^M
是一个文本Ctrl-M字符,按Ctrl+V再按Enter键(或以Vim表示法)输入。您可以通过输入:map o
创建相同的映射,其中
一次键入一个字符。
是
的同义词。