Re: how do you save a buffer out as a file in vim?
* Drew Cohan <drewcohan@drewcohan.com> [03-02-13 12:09]:
> Hi,
>
>
>
> I want to be able to open one file in vim (vim file1), copy some arbitrary
> lines (v, down arrow, yy), and then save that buffer out as a file (file2).
NB: try "j" instead of down arrow (j is closer than the arrow).
>
>
> What is the ":" command to save out the buffer?
>
:e file2
paste with p
(which paste the last register '""'. Btw, see them with :reg)
:w
(among others ways to do it).
>
> Thanks,
>
>
>
> Drew
>
>
>
>
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
--
Xavier Barnabe-Theriault http://xebu.org/
Maitrise en physique, etudiant M.Sc. Student in Physics
Gulus: http://gulus.org/
Mydynaweb: Develop(peu|e)r http://mydynaweb.net/
Reply to: