NESUG 15 Posters

1 gVim 6.x, AN ALTERNATIVE TO THE DISPLAY MANAGER EDITOR Adeline J. Wilcox, Beltsville, MD

ABSTRACT INSTALLATION OF gVim 6.x

gVim is a free of interest to SAS® users In the Wintel shop downloading gvim60.exe because it offers many powerful features and SAS automatically installed it on my networked PC. Later syntax highlighting. Although gVim runs on many I downloaded gvim61.exe from operating systems, gVim will be of special interest to ftp://ftp.us..org/pub/vim/pc/ onto my SASless PC users of both SAS and vi trying to work in a PC at home. I installed gVim 6.1 by running gvim61.exe environment running Microsoft Windows. gVim runs in the directory into which I had downloaded it. In under 9 releases of Windows. both cases, three icons appeared on the Windows gVim has a graphical user interface with mouse desktop after installation. These are named gVim 6.1, control, text selection, and menus. Like Vim, it was gVim Easy 6.1, and gVim Read only 6.1. I have developed by Bram Moolenaar. Vim (Vi IMproved) never found any use for gVim Easy 6.1. is his improvement of vi, the powerful text editor found on UNIX systems. To turn on SAS Syntax Highlighting choose SAS Because gVim recognizes when SAS log and listing from the Syntax pull-down menu files have been updated by execution of another SAS batch run, running 3 gVim windows, one each for the You can learn about making backup files in Section SAS program, log and listing, can be an efficient 07.4 of the VIM USER MANUAL. means of running SAS batch on a PC. Powerful vi features can be used to search the SAS log and listing RUNNING SAS IN BATCH MODE after each successive SAS batch run. This poster will address printing issues and identify After clicking on the gVim 6.0 icon, I read in my resources for prospective gVim users. existing SAS program or file header to write a new one. In this shop, the Windows desktop was INTRODUCTION customized with a pull-down menu offering batch SAS. Clicking on it submitted the SAS code in my A search of the SAS-L archives found no mention of gVim 6.0 window. When the desktop showed that my the gVim text editor, despite the fact that this editor run had ended, I clicked on the gVim 6.0 icon again offers SAS syntax highlighting. Nor did I find any and read in the SAS log so I could use the text- reference to SAS in the archives of the Vim mailing searching tools in gVim. To view the SAS listing, I list, http://groups.yahoo.com/group/vim. Many opened a third gVim 6.0 window, allowing me to who learn and use either vi or search that text with gVim. for text editing come to strongly prefer the power of their editor and fervently promote its use. Because I After changing the SAS code in my first gVim 6.0 learned UNIX in a shop that did not run emacs, I window, I had to be sure I had written the file with a learned vi. Ever since I have sought to use a vi clone w at the colon prompt. Without writing to the SAS when working outside the UNIX environment. program file, the next batch submission would simply During the past year I worked in a Wintel shop for a rerun the first version of my SAS program. short time. To use my vi text editing skills, I got permission for installation of gVim on my PC. On the second and additional batch job submissions, I clicked on the gVim 6.0 windows containing my SAS While the documentation suggests that it is possible log and SAS listing files to update them and bring to learn gVim without learning vi first, novices are the latest output into view. warned that knowledge of vi commands is needed to navigate gVim help. I recommend reading Bram PRINTING THE SAS LOG Moolenar's VIM USER MANUAL at http://www.erebus.demon.nl/vim/. This paper won't I found I needed to remove the formfeeds ^L from teach a beginner how to use vi, Vim, or gVim. the SAS log to avoid printing twice the number of 1 NESUG 15 Posters

2

pages desired. In ex line-editing mode, at the colon the text processing power of vi, I'm optimistic that a prompt, I could not use CTRL-V to represent the solution, likely an automated one, can be found. caret portion of the printing formfeeds ^L because CTRL-V was mapped to dump the Windows paste NEXT STEPS buffer. Instead of typing %s/^CTRL-VCTRL-L// at the colon prompt to replace the printing formfeeds Obviously, if I use gVim again, I should describe my with blanks, I found I needed to type %s/^CTRL- printing problem in a post to SAS-L or the Vim QCTRL-L//, replacing the CTRL-V with CTRL-Q. mailing list, [email protected]. By running a google You can find this necessary information in the gVim search I found Kent Nassen's Web site, locating him help by searching on CTRL-V. as a fellow SAS and gVim user. However, he was running SAS under UNIX and printing his SAS The File pull-down menu offers Print. output without any problems.

Because the default paper for this fine European OTHER RESOURCES software isn’t the 8.5" x 11" most of us use, I found I had to reset the gVim6.0 paper option to letter. I also set the page options wrap:n and header:0. Although now very outdated, the 6th edition of the O'Reilly manual titled "Learning the vi Editor" has a PRINTING THE SAS LISTING chapter on Vim.

I did not find a good way to print my SAS listing CONTACT INFORMATION files with gVim 6.0. My SAS listing files had too many pages with too much white space. A text Adeline J. Wilcox processing solution different for the one I used for the 10901 Fleetwood Drive printing the log is needed for the listing. Perhaps Beltsville, MD 20705-2502 further study of http://vim.sourceforge.net/index.php (301) 931-0356 or other web sites devoted to Vim might lead me or [email protected] another SAS user to a solution. Given the numerous [email protected] features of gVim 6.x, including macros, scripts and .

2