LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (July 2004, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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>
Organization: http://groups.google.com
Subject:      Re: how to customize vim for use with SAS?
Content-Type: text/plain; charset=ISO-8859-1

Rusty Shackleford <rs@overlook.homelinux.net> wrote in message news:<slrncfd52q.oo7.rs@frank.overlook.homelinux.net>... > 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!

Rusty,

If you're running SAS under a Unix or Cygwin/Windows shell:

$ vim foo.sas [edit code] [press Ctr-v to suspend terminal]

$ sas -sysin foo.sas; vim -o -c '/^ERROR.*:\|^WARNING:/' foo.log foo.lst # You now have 2 windows, one displaying the Log, one displaying the List. # 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.

Bob

-- "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


Back to: Top of message | Previous page | Main SAS-L page