什么是vim录音以及如何禁用它?

佐手、 提交于 2019-12-22 19:39:10

【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>>

我一直在gvim 7.2窗口底部看到recording信息。

它是什么以及如何将其关闭?


#1楼

这意味着你处于“记录宏”模式。 通过键入q后跟注册名称输入此模式,可以通过再次键入q退出。


#2楼

听起来你打开了微距录音。 要关闭它,请按q

有关详细信息,请参阅“ :帮助记录 ”。

相关链接:


#3楼

您可以通过q <letter>开始录制,然后再次输入q即可结束录制。

录制是Vim非常有用的功能。

它记录您键入的所有内容。 然后,您只需键入@ <letter>即可重播。 记录搜索,移动,替换......

Vim恕我直言的最佳功能之一。


#4楼

正如其他人所说,它是宏录制,你用q关闭它。 这是一篇很好的文章,讲述了如何以及为什么它有用。


#5楼

键入: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}
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!