VIM:可映射(未使用)快捷键?
发布时间:2020-12-15 19:06:49 所属栏目:安全 来源:网络整理
导读:我正在尝试创建两个对我自己有效的映射: map X ddp 我一直用来删除和粘贴。 map X "_dw 哪个会删除一个字,而不用注册。 但是我不想破坏现有的有用的快捷方式,所以我想知道我可以使用什么密钥 – 任何建议?我太厉害了吗? vim帮助有一个部分:他映射 –
我正在尝试创建两个对我自己有效的映射:
map X ddp 我一直用来删除和粘贴。 map X "_dw 哪个会删除一个字,而不用注册。 但是我不想破坏现有的有用的快捷方式,所以我想知道我可以使用什么密钥 – 任何建议?我太厉害了吗?
vim帮助有一个部分:他映射 – 哪些键
1.7 WHAT KEYS TO MAP *map-which-keys* If you are going to map something,you will need to choose which key(s) to use for the {lhs}. You will have to avoid keys that are used for Vim commands,otherwise you would not be able to use those commands anymore. Here are a few suggestions: - Function keys <F2>,<F3>,etc.. Also the shifted function keys <S-F1>,<S-F2>,etc. Note that <F1> is already used for the help command. - Meta-keys (with the ALT key pressed). |:map-alt-keys| - Use the '_' or ',' character and then any other character. The "_" and "," commands do exist in Vim (see |_| and |,|),but you probably never use them. - Use a key that is a synonym for another command. For example: CTRL-P and CTRL-N. Use an extra character to allow more mappings. See the file "index" for keys that are not used and thus can be mapped without losing any builtin function. You can also use ":help {key}^D" to find out if a key is used for some command. ({key} is the specific key you want to find out about,^D is CTRL-D). (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |