[Rant-cafe] [Fwd: [make-open-discussion][15826] rant.vim: a rant compiler plugin for vim]

Xavier Shay xavier-list at rhnh.net
Sat Dec 9 15:51:03 EST 2006

Hi everyone,
If anyone is using VIM, perhaps the script below.
Does this belong in the core distribution beside the bash completion
script? Comments?

-------- Forwarded Message --------
From: 稜剛 張簡 <noreply at rubyforge.org>
To: noreply at rubyforge.org
Subject: [make-open-discussion][15826] rant.vim: a rant compiler plugin
for vim
Date: Sat, 9 Dec 2006 10:27:29 -0500 (EST)

Read and respond to this message at: 
By: 稜剛 張簡

i wrote a vim script to support vim quickfix your Rantfile.
copy the following file into vim/compiler dir.

"rant compilier
if exists("current_compiler")
let current_compiler = "rant"

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

let s:cpo_save = &cpo
set cpo-=C

" default settings runs script normally
" add '-c' switch to run syntax check only:
"   CompilerSet makeprg=ruby\ -wc\ $*
" or add '-c' at :make command line:
"   :make -c %<CR>
CompilerSet makeprg=rant\ $*

"A rant error message example;
"rant: [ERROR] in file `C:/vim/vim70/compiler/Rantfile', line 4:
"              NameError: undefined local variable or method `w' for

CompilerSet errorformat=
     \%Erant:\ [ERROR]\ in\ file\ `%f'\,\ line\ %l:%.%#,%Z%m

let &cpo = s:cpo_save
unlet s:cpo_save

" vim: nowrap sw=2 sts=2 ts=8 ff=unix

You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to RubyForge and visit: 

More information about the Rant-cafe mailing list