Hi,
David Woodfall schrieb am 18.09.2014 um 10:25:
Hi, I have a function that calls my make application and if
compilation fails it brings up a new window at the top of the term
with the log open in it. All works well but what I'd like to do is
grab the line from the error message and go to that line in my code
script.
Here is an example of one such line:
I:\ut99\XConsole\Classes\XConsole.uc(4230) : Error, Unexpected 'i'
So in this example I would like to place the cursor at line 4230.
I can't find much in the way googling for this but I imagine it's
possible. Perhaps there's a way of setting a variable from the line
number and then going to it?
Any ideas greatly appreciated.
have you tried the :make command inside Vim? It calls the program given
in the 'makeprg' option and parses its output according to the rules
defined by the 'errorformat' option. The default of 'errorformat' should
work in your example and automatically position you on line 423 of
XConsole.uc.
Have to say that I haven't used that.
Regards,
Jürgen
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.