Thread View: comp.os.msdos.pcgeos
2 messages
2 total messages
Started by Han(d)s (Henry von Tresckow)
Thu, 28 Jan 1993 01:08
Cutting and pasting to vi/UNIX
Author: Han(d)s (Henry von Tresckow)
Date: Thu, 28 Jan 1993 01:08
Date: Thu, 28 Jan 1993 01:08
20 lines
1599 bytes
1599 bytes
Hi there fellow Geoworkers. I have been reading this Newsgroup for quite a while now. Keep up the good work. Here is my problem: I am trying to use notepad and GeoComm as a better alternative to vi. :) But I still haven't figured out a good way to paste things BACK to my UNIX account. Any suggestions? Shagg?????? |-------------------------------------|--------------------------------------| | | _____ Like German Beer- | | Hans Henry von Tresckow | | | | Will Travel! | | email: hvontres@tuba.calpoly.edu | |--|--| | | me-119@stn14.ME.calpoly.edu | | |\/| (Age 21 in 1993,ahhg!) | | snail-mail: | | | Lassen 17, Cal Poly | | | San Luis Obispo | | | CA,93410 | | |_____________________________________|______________________________________|
Re: Cutting and pasting to vi/UNIX
Author: Douglas A Taylor
Date: Thu, 28 Jan 1993 14:16
Date: Thu, 28 Jan 1993 14:16
59 lines
3145 bytes
3145 bytes
In article <1993Jan28.010833.194879@zeus.calpoly.edu> hvontres@zeus.calpoly.edu (Han(d)s (Henry von Tresckow)) writes: > >Here is my problem: I am trying to use notepad and GeoComm as a better >alternative to vi. :) >But I still haven't figured out a good way to paste things BACK to my UNIX >account. Any suggestions? > >Shagg?????? Well, I'm no Shag (then again, who is? :-) but let me see if I can help. I assume that what you want to do is something like this: Write a note in Notepad, cut it to the clipboard (or do a quick copy -- see below), activate the GeoComm window, and paste your text to a file on the Unix box. I've done this on a number of Unix boxes with small Notepad files (what other kind are there? :-), and this is how I do it: If Emacs is installed, I just start it up with the filename I want, paste the text, and exit. It does all the word wrap for me automatically. If Emacs isn't installed and I have to use vi, then I usually turn on vi's word wrap function and cut/paste a paragraph at a time. I've found that word wrap slows vi down, and vi's input buffer often isn't big enough to hold all the text that piles up as a result. I haven't really tried this without word wrap turned on, so I don't know how well that would work. If you don't care about word wrap, you can do what C programming gurus do and use cat to enter your text :-). To paste your text into a file called myfile you just type cat >myfile or cat - >myfile and then paste your text in. This has about the same effect as typing "copy con myfile" at the DOS prompt. Once you're done pasting your text you need to type Control-D (or whatever your EOF character is set to; typing "stty" at the Unix prompt wil tell you) to close the file. Under BSD Unix you can then reformat your text to 72 (?) columns by piping it through fmt. I forget what the corresponding command is under System V or HPUX or ... Hope this helps. Oh, yeah. To do a quick copy, just highlight the Notepad text you want, click and hold the *right* mouse button, move the mouse cursor to where you want the text to go, and release the right mouse button. Very slick and it works from practically anywhere in GEOS. Just another cool thing I've learned while reading this newsgroup. -- Doug Taylor | Nothing real can be threatened. The Ohio State University | Nothing unreal exists. doug-taylor+@osu.edu | - A Course in Miracles
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads