What is vim recording and how can it be disabled?
我一直在我的gvim 7.2窗口底部看到
它是什么?如何关闭它?
你开始用qb
记录是VIM的一个非常有用的特性。
它记录了你键入的所有内容。然后,只需键入@
VIM IMHO的最佳特性之一。
键入:h recording了解更多信息。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | *q* *recording* q{0-9a-zA-Z"} Record typed characters into register {0-9a-zA-Z"} (uppercase to append). The 'q' command is disabled while executing a register, and it doesn't work inside a mapping. {Vi: no recording} q Stops recording. (Implementation note: The 'q' that stops recording is not stored in the register, unless it was the result of a mapping) {Vi: no recording} *@* @{0-9a-z".=*} Execute the contents of register {0-9a-z".=*} [count] times. Note that register '%' (name of the current file) and '#' (name of the alternate file) cannot be used. For"@=" you are prompted to enter an expression. The result of the expression is then executed. See also |@:|. {Vi: only named registers} |
听起来你打开了宏录制。要关闭,请按
有关更多信息,请参阅":帮助录制"。
相关链接:
- SMR的博客:vim::recording
- vi和vim宏教程:如何录制和播放
输入
如Joey Adams所述,要禁用录制,请在主目录中的
1 | map q <Nop> |
正如其他人所说,这是一个宏记录,你用q关闭它。这是一篇关于如何操作和为什么它有用的好文章。
这意味着你处于"录制宏"模式。输入此模式时,键入