Date: Sun, 18 Jul 2004 04:37:32 -0700
Reply-To: Bob Heckel <gg.20.bheckel@SPAMGOURMET.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Bob Heckel <gg.20.bheckel@SPAMGOURMET.COM>
Subject: Re: how to customize vim for use with SAS?
Content-Type: text/plain; charset=ISO-8859-1
Rusty Shackleford <firstname.lastname@example.org> wrote in message news:<email@example.com>...
> Hi - I use vim to write my sas programs, and then I exit vim and run
> the programs with:
> $ sas program.sas
> Then I view the .log and lst files in vim again. Is there some fancier
> ESS-type stuff available for vim? All vim + SAS tips welcome!
If you're running SAS under a Unix or Cygwin/Windows shell:
$ vim foo.sas
[press Ctr-v to suspend terminal]
$ sas -sysin foo.sas; vim -o -c '/^ERROR.*:\|^WARNING:/' foo.log
# You now have 2 windows, one displaying the Log, one displaying the
# The vim cursor is positioned on the first ERROR or WARNING, if any
[in Vim :qa]
[type fg to go back to code]
It really speeds up the edit-run-debug process. And the regular
expression searches in Vim allow fast navigation in both List and Log.
I use a shell script that does a few other things plus Vim syntax
highlighting from my custom sas.vim to color SAS Log output.
"In pursuit of the dubious goal of producing idiot-proof,
zero-learning-curve programs, even programs intended for
heavy-duty use such as editors--arguably the most important
piece of software you'll use--have been turned into children's
toys, effectively expert-proofed" -- Tom Christiansen