Re: Copying to a new file
- From: "Artnut" <art@xxxxxxxxx>
- Date: Sun, 22 Jun 2008 13:31:48 +0530
"coffee" <coffee@xxxxxxxxxxxxxx> wrote in message
news:9oWdnUbt15wM98DVnZ2dnUVZ_szinZ2d@xxxxxxxxxxxxxxx
On Fri, 20 Jun 2008 18:43:11 +0530, Artnut wrote:
Hi all,
The other day I was browsing through the Vimtutor which runs as a
command. It opens as a tutorial. I would like to know how can I copy,
paste the entire contents to a new file. If I yank the contents, they
can only be copied to the same file. Maybe I am doing something wrong
but does VIM really have a facility/command to copy to another file? I
tried the usual cp command but that copies the command and its code for
the Vimtutor.
Also, how do I read the lessons numbered as |usr_1.txt| ?
Thank you in advance.
Arty
Arty;
cp origional-file.txt newfile.txt
To assemble avi slices from newsgroups:
cat firstfile.avi.0* > movie.avi
Or, You can copy the contents of a file also by:
cat originalfile.txt > newfile.txt
helps?
coffee
Hey Coffee and others, thanks indeed for the replies. Ideally cat abc.txt >
xyz.txt would help but vimtutor is a command which opens as tutorial in Vi
or Vim. If I yank those 970 lines and I open a blank new file, I cannot p
(paste) because it is not programmed that way. It means I can only paste the
yanked 970 lines in the same tutorial giving me additional 970 lines! I
don't understand why this limitation for a command related file. I can copy
from a normal vi file and paste into another new vi file but cannot do so
with a command output file.
Thank you,
Arty
.
- Follow-Ups:
- Re: Copying to a new file
- From: J.O. Aho
- Re: Copying to a new file
- References:
- Copying to a new file
- From: Artnut
- Re: Copying to a new file
- From: coffee
- Copying to a new file
- Prev by Date: Re: How to add another distro?
- Next by Date: Re: Copying to a new file
- Previous by thread: Re: Copying to a new file
- Next by thread: Re: Copying to a new file
- Index(es):
Relevant Pages
|