我知道有一个命令行选项可以告诉 vim(或者在我的情况下是 gVim)将其自己的日志输出到文件中。不幸的是我记不清了。有人能帮忙吗?
答案1
它是可以在启动时设置的“详细”选项:
-V[N] Verbose. Sets the 'verbose' option to [N] (default: 10).
Messages will be given for each file that is ":source"d and
for reading or writing a viminfo file. Can be used to find
out what is happening upon startup and exit. {not in Vi}
Example: >
vim -V8 foobar
-V[N]{filename}
Like -V and set 'verbosefile' to {filename}. The result is
that messages are not displayed but written to the file
{filename}. {filename} must not start with a digit.
Example: >
vim -V20vimlog foobar