4

When Vim reports errors within a function it typically reports relative line numbers. For example:

Error detected while processing function Foo:
line  11:
E123: Blah blah

Here indicating the issue is at line 11 relative to start of function Foo. Guess this is a result of how Vim load functions etc. – but is there a way to make it report absolute line numbers? As in line-number of script-file holding the function.

1 Answer 1

5

There was an RFC suggesting this, but there was no response from Bram at the time.

4
  • I'll wait for a bit, but guess this is the answer – unless there is a clever hack.
    – Runium
    Commented Mar 10, 2015 at 19:36
  • There was no patch there, just a wish, wasn't it? Commented Mar 10, 2015 at 19:37
  • @ChristianBrabandt Doh. You're right. ZyX was doing a lot of hacking on the function code at the time, so I saw the post and just figured it had a patch.
    – jamessan
    Commented Mar 10, 2015 at 19:47
  • @jamessan I remember that RFC, but I didn't completly understand what was meant so I never really tried to fix it Commented Mar 10, 2015 at 20:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.