【问题标题】:Where can I find a description of vim's verbose levels/settings?我在哪里可以找到 vim 详细级别/设置的描述?
【发布时间】:2015-07-16 16:29:42
【问题描述】:

我一直在搜索 vim 的帮助,但无法找到所有详细级别的列表以及每个级别的输出。

在玩耍并阅读文档后,我发现:

  • 0 - 当 vim 不是以-V 启动时,详细设置为 0。
  • 6 - 显示缓冲区本地自动命令的删除
  • 9 - 在 vi​​m 执行时回显自动命令
  • 10 - 以vim -V 开头且未指定级别时的默认级别,显示文件的来源名称
  • 13 - 显示异常?
  • 20 - 最高等级?

【问题讨论】:

    标签: vim verbose


    【解决方案1】:

    详细程度

    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 link 的简短快照

    【讨论】:

      【解决方案2】:

      来自: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.
      

      【讨论】:

      • 啊 - :h verbose:h 'verbose' 不一样,谢谢。 :) 奇怪:helpgrep verbose 没有找到那个页面。
      • @nfarrar : :help 引号中的页面是有关选项的帮助页面(就像 :h v_d 在可视模式下会显示有关 d 的帮助一样)。有关完整列表,请参阅 :help help-context
      猜你喜欢
      • 1970-01-01
      • 2017-03-22
      • 1970-01-01
      • 1970-01-01
      • 2019-12-16
      • 1970-01-01
      • 2023-03-31
      • 2023-03-28
      • 1970-01-01
      相关资源
      最近更新 更多