pete@TIRS.oz.au (Peter Bartel) (03/05/91)
The SunOS version of vi only allows ^T and ^D to indent/unindent lines before you have typed text on the new line. Elvis conveniently allows these functions to work at anyplace on a line in insert mode. Can someone come up with macros for SunOS vi to make ^T/^D work like in Elvis? I could get it to work sometimes but not in every case: blank line; line consisting of white space only; at the end of a line of text; in the middle of a line of text. Variations like this don't always work: map! ^T ^[mt>>`t4la " assuming shiftwidth of 4 Secondly, how do you map ^D at all? I can type in :map! ^D blahblah but it get's treated as EOF when initializing vi from .exrc. I've tried preceeding ^D by varying quantities of ^V to no avail. Thanks in advance. _______________________________________________________________________ Peter Bartel Senior Software Engineer International Phone: +61-8-232-1740 Railroad Faxstream: +61-8-232-2274 Systems E-mail: pete@TIRS.oz.au (Electronics) Snail: 209-217 Wakefield St, Adelaide, South Australia, 5000