意外重置.vimrc vim仍处于打开状态:可以在内存中恢复.vimrc吗?

时间:2015-02-16 21:09:20

标签: vim

是否可以获取vim执行的所有命令的列表。我使用:mkvimrc这很有帮助,但更好的是如果我可以恢复已执行的命令,但我意识到这是不可能的,所以我想尽可能恢复,同时我仍然打开vim

获取命令和功能也很有帮助。现在,我手动完成它。

我应该说我有一个.vim文件夹,其目录结构为子*.vim个文件,我有插件。

1 个答案:

答案 0 :(得分:0)

它不完全是您想要的,但-w启动选项可能会有所帮助。

:h -w

                            *-w*
-w {scriptout}  All the characters that you type are recorded in the file
        "scriptout", until you exit Vim.  This is useful if you want
        to create a script file to be used with "vim -s" or
        ":source!".  When the "scriptout" file already exists, new
        characters are appended.  See also |complex-repeat|.
        {scriptout} cannot start with a digit.
        {not in Vi}

                            *-W*
-W {scriptout}  Like -w, but do not append, overwrite an existing file.
        {not in Vi}