3

私は vim のヘルプを検索してきましたが、すべての冗長レベルと各レベルの出力のリストを見つけることができませんでした。

遊んでドキュメントを読んだ後、次のことがわかりました。

  • 0 - vim が で開始されていない場合-V、verbose は 0 に設定されます。
  • 6 - バッファローカル自動コマンドの削除を表示
  • 9 - vim が実行する自動コマンドをエコーする
  • 10 - 開始時のデフォルト レベルでvim -Vあり、レベルが指定されていない場合、ソースとしてファイルの名前が表示されます
  • 13 - 例外を表示しますか?
  • 20 - 最大レベル?
4

2 に答える 2

4

から: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.
于 2015-05-06T13:41:33.340 に答える
2

詳細レベル

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).

これは、このリンクからの短いスナップショットです

于 2015-05-06T13:43:39.993 に答える