On 01/14/13 10:42, stosss wrote:
   :7,42w >> blah.txt

Will append lines 7-42 of the current file to the end of existing other file 
blah.txt.


Manually that works. I did find that help section. But I want to do it
automated. Is my answer in that help file? I will go back and read it
again. If I have file.txt and I run a mapping that yanks some lines
and start a new file and dumps the yanked text into that file and then
:w how will Vim know what to name that file? How do I tell Vim what to
name that file without doing it manually myself?

Well, how would you otherwise determine the filename? You didn't mention in your original post that the filename came from your source file, so the running assumption was that you had a fixed catalog of filenames you wanted to produce.

Having sample data from your file, and the filenames (and how they're determined) for that file would help produce a more accurate solution to your problem.

-tim



--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to