Quote:
Originally Posted by Downtown1
Hmmm, maybe we can get some binds to use the compiler from inside vim too?
|
I added this to my syntax file:
Code:
set makeprg=/path/to/spcomp\ %
set errorformat=%f\(%l\)\ :\ fatal\ %t%*[^0-9]%n:\ %m,%f\(%l\)\ :\ %t%*[^0-9]%n:\ %m
Of course, change the path. Leave the "\ %" on the end. You can put it anywhere in the syntax file, so if you've got vim set up to automatically set the syntax when you open an .sp file, it'll set makeprg and the error format.
Then you can do :make and it'll compile it and use the built in quickfix stuff for pointing out errors. (:help quickfix) You can bind a key yourself to do :make if you want. This works for me and I don't see why it wouldn't work for others, but I haven't tested except on my Linux system.