我一直在gVim 7.2窗口的底部看到录制消息。
它是什么?我如何关闭它?
我一直在gVim 7.2窗口的底部看到录制消息。
它是什么?我如何关闭它?
当前回答
键入:h录制以了解更多信息。
*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}
其他回答
键入q开始宏录制,当用户再次单击q时,录制停止。
正如Joey Adams所提到的,要禁用录制,请在主目录中的.vimrc中添加以下行:
map q <Nop>
你开始录制时用q<letter>你可以再次键入q来结束它。
录制是Vim的一个非常有用的功能。
它记录你键入的所有内容。然后,只需键入@<letter>即可重播。记录搜索、移动、替换。。。
Vim IMHO的最佳功能之一。
正如其他人所说,这是宏录制,你可以用q关闭它。这是一篇关于如何操作以及为什么它有用的好文章。
键入:h录制以了解更多信息。
*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}
这意味着您处于“录制宏”模式。该模式通过键入q后跟寄存器名称来进入,并且可以通过再次键入q退出。