Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!mailrus!tut.cis.ohio-state.edu!bloom-beacon!gatech!mcnc!decvax!tektronix!tekcrl!eirik From: eirik@tekcrl.TEK.COM (Eirik Fuller) Newsgroups: comp.windows.x Subject: Re: xterm copy buffer feature Message-ID: <2561@tekcrl.TEK.COM> Date: 23 Apr 88 08:35:04 GMT References: <8804212223.AA11069@s3snorkel> <880422090519.6.RWS@KILLINGTON.LCS.MIT.EDU> Sender: news@tekcrl.TEK.COM Organization: Tektronix, Inc., Beaverton, OR. Lines: 29 Summary: ":set noai" In article <880422090519.6.RWS@KILLINGTON.LCS.MIT.EDU> RWS@ZERMATT.LCS.MIT.EDU (Robert Scheifler) writes: | | Date: Thu, 21 Apr 88 15:23:02 PDT | From: warner%s3snorkel@scubed.arpa (Ken Warner) | | When using the copy buffers in an xterm window, if I select--with the left | button--some text paste it into another window, I get an interesting staircase | effect. | |I cannot reproduce this, either on a Sun or an Apollo xterm/vi combination, |using the text you indicated. I may be missing something here, but the closest thing I've seen to a staircase effect is pasting multiple indented lines into a vi window with autoindent set. Please excuse me if I missed the boat entirely; I didn't see the original posting. Perhaps there is a creative way to remap line-feeds in insert mode to deal with auto-indent (assuming that most people use carriage return for new lines, and that xterm sends line feeds for line boundaries). If so, I haven't found it. I'd guess something like '^M^[0i' would do it, where the ^ notation means control characters. Mostly what I haven't found is a way to map line feeds into anything. It'd be nice if vi had a mode where CRs autoindented and LFs didn't; maybe it does and I just don't know it. Such behavior might be worth hacking into vi, to deal with window copy buffers and autoindent. OK, I'll be quiet now :-)