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.


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

  • I'll wait for a bit, but guess this is the answer – unless there is a clever hack.
    – Runium
    Mar 10 '15 at 19:36
  • There was no patch there, just a wish, wasn't it? Mar 10 '15 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
    Mar 10 '15 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 Mar 10 '15 at 20:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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