Jump to content
Excelsior Forums
Sign in to follow this  
qnr

vim/gvim make with XDS

Recommended Posts

Anyone set this up?

I can program all day in Modula-2, but I still haven't gotten around to actually making makefiles in XDS, much less integrating them into vim.

Share this post


Link to post
Share on other sites

ok, I've been using :make from within vim for a while now.  I came across this old post, so I thought I'd update.  I do it by using this file that I have put in the ./vim/compiler/ directory:

" Vim compiler file
" Compiler:	XDS Modula-2
" Maintainer:	Terry Ross <terry@aliboom.com>
" URL:		http://linux.aliboom.com:8000/vim/compiler/xdsm2.vim
" Last Change:	2006 Apr 05

if exists("current_compiler")
  finish
endif
let current_compiler = "xdsm2"

if exists(":CompilerSet") != 2		" older Vim always used :setlocal
  command -nargs=* CompilerSet setlocal <args>
endif

CompilerSet makeprg=xc\ =m\ % 

CompilerSet errorformat=%EError:\ %m,%+Z\ %\\{4}(file\ \"%f\"\ line\ %l),%-G%.%#

That's just a copy and edit of another file from the compiler/ directory...

from inside vim, I use

:compiler xdsm2

to load it, and then

:make

to compile the source I'm working on

Now, does anyone have an idea on how to set the errorFormat line correctly?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×