如何弄清楚Vim错误代码的含义?

时间:2018-06-19 01:22:25

标签: vim error-code

Vim处理错误或异常的方法是使用E107之类的消息提供错误代码Unknown function: a。要弄清楚错误代码的详细信息,我可以使用:h E107或触发错误来查看将会发生的事情。

但是,一些错误代码对我来说仍然不透明,因为文档只列出它们而不是给出描述。例如,E107的文档也列出了代码E117,但其含义没有明确说明。更糟糕的是,:h E107表明此错误代码没有单独的文档。

以下是相关文件。由于该段段提到range很多,我猜E117range

                                          :cal :call E107 E117
:[range]cal[l] {name}([arguments])
        Call a function.  The name of the function and its arguments
        are as specified with |:function|.  Up to 20 arguments can be
        used.  The returned value is discarded.
        Without a range and for functions that accept a range, the
        function is called once.  When a range is given the cursor is
        positioned at the start of the first line before executing the
        function.
        When a range is given and the function doesn't handle it
        itself, the function is executed for each line in the range,
        with the cursor in the first column of that line.  The cursor
        is left at the last line (possibly moved by the last function
        call).

由于我对vim可以产生的错误很陌生,我所能做的只是猜测。一般来说,有没有更好的方法可以弄清楚Vim错误代码的含义?非常感谢。

1 个答案:

答案 0 :(得分:1)

不,不幸的是没有更好的方法,而且我也不知道众源资源。虽然这将是一个有趣的周末项目。

相关问题