I've been searching through vim's help, but haven't been able to find a list of all the verbose levels and what is output by each level.
我一直在搜索vim的帮助,但是无法找到所有详细级别的列表以及每个级别的输出。
After playing around and reading the docs, I've found:
在玩完并阅读文档后,我发现:
- 0 - when vim is not started with
-V
, verbose is set to 0. - 6 - displays removal of buffer-local autocommands
- 9 - echo autocommands as vim executes them
- 10 - default level when started with
vim -V
and level is not specified, displays names of files as they are sourced - 13 - displays exceptions?
- 20 - max level?
0 - 当vim未以-V启动时,verbose设置为0。
6 - 显示删除缓冲区本地自动命令
9 - vim执行它们时的echo自动命令
10 - 使用vim -V启动时的默认级别未指定级别,显示源文件的名称
13 - 显示例外情况?
20 - 最高水平?
2 个解决方案
#1
From :help 'verbose'
:
来自:help'verbose':
'verbose' 'vbs' number (default 0)
global
{not in Vi, although some versions have a boolean
verbose option}
When bigger than zero, Vim will give messages about what it is doing.
Currently, these messages are given:
>= 1 When the viminfo file is read or written.
>= 2 When a file is ":source"'ed.
>= 5 Every searched tags file and include file.
>= 8 Files for which a group of autocommands is executed.
>= 9 Every executed autocommand.
>= 12 Every executed function.
>= 13 When an exception is thrown, caught, finished, or discarded.
>= 14 Anything pending in a ":finally" clause.
>= 15 Every executed Ex command (truncated at 200 characters).
This option can also be set with the "-V" argument. See |-V|.
This option is also set by the |:verbose| command.
#2
verbosity level
vim -V20/tmp/log filename
save verbose 20 to filename /tmp/log
When bigger than zero, Vim will give messages about what it is doing. Currently, these messages are given:
>= 1 When the viminfo file is read or written.
>= 2 When a file is ":source"'ed.
>= 5 Every searched tags file and include file.
>= 8 Files for which a group of autocommands is executed.
>= 9 Every executed autocommand.
>= 12 Every executed function.
>= 13 When an exception is thrown, caught, finished, or discarded.
>= 14 Anything pending in a ":finally" clause.
>= 15 Every executed Ex command (truncated at 200 characters).
This is a short snapshot from this link
这是此链接的简短快照
#1
From :help 'verbose'
:
来自:help'verbose':
'verbose' 'vbs' number (default 0)
global
{not in Vi, although some versions have a boolean
verbose option}
When bigger than zero, Vim will give messages about what it is doing.
Currently, these messages are given:
>= 1 When the viminfo file is read or written.
>= 2 When a file is ":source"'ed.
>= 5 Every searched tags file and include file.
>= 8 Files for which a group of autocommands is executed.
>= 9 Every executed autocommand.
>= 12 Every executed function.
>= 13 When an exception is thrown, caught, finished, or discarded.
>= 14 Anything pending in a ":finally" clause.
>= 15 Every executed Ex command (truncated at 200 characters).
This option can also be set with the "-V" argument. See |-V|.
This option is also set by the |:verbose| command.
#2
verbosity level
vim -V20/tmp/log filename
save verbose 20 to filename /tmp/log
When bigger than zero, Vim will give messages about what it is doing. Currently, these messages are given:
>= 1 When the viminfo file is read or written.
>= 2 When a file is ":source"'ed.
>= 5 Every searched tags file and include file.
>= 8 Files for which a group of autocommands is executed.
>= 9 Every executed autocommand.
>= 12 Every executed function.
>= 13 When an exception is thrown, caught, finished, or discarded.
>= 14 Anything pending in a ":finally" clause.
>= 15 Every executed Ex command (truncated at 200 characters).
This is a short snapshot from this link
这是此链接的简短快照