Path: utzoo!mnetor!uunet!husc6!im4u!ut-sally!ut-emx!poole From: poole@ut-emx.UUCP (Steve Poole) Newsgroups: comp.editors Subject: Re: How to put vi into 132 column mode? Message-ID: <2151@ut-emx.UUCP> Date: 6 May 88 18:06:55 GMT Organization: UT Center for Space Research, Austin TX Lines: 38 Keywords: vi 132 column Lazer Danzinger asked about putting vi into 132 column mode. Eric Koldinger suggested setting up the following alias: alias wvi 'stty cols 132; vi \!\*; stty cols 80' Henk Boetzkes suggested setting up the following alias: alias wi 'setenv TERM vt100-w ; echo "^[[?3h" ; vi \!\!:* ; setenv TERM vt100 ; echo "^[[?3l" ' ^ ^ |_______________________________________________| | | Control [ Neither of these worked for me. But I was able to figure out something that did work. I set the following alias. alias viw 'stty cols 132; echo "^[[?3h"; vi \!* ; echo "^[[?3l";stty cols 80' I had trouble getting the Control [ into a file. Vi wouldn't let me just type it in, and typing a \ before typing the Control [ didn't work. I finally got it into a file by giving the command echo "^[[?3h" > temp1 where ^[ is Control [ That got in into the file temp1. Then I could use it to create the alias command, which I put in my .cshrc file in my login directory. -- Steve Poole ARPA: poole@emx.utexas.edu UUCP: {ames,angband,exodus,harvard,im4u,mordor}!ut-sally!ut-emx!poole