Monday, January 14, 2013

Re: Save part from file.txt to file1.txt ?

On Mon, Jan 14, 2013 at 11:53 AM, Ben Fritz <fritzophrenic@gmail.com> wrote:
> On Monday, January 14, 2013 10:42:27 AM UTC-6, Jack Gates wrote:
>>
>> 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?
>
> See your other thread. :w is one of those commands that can use % with modifiers directly, or you can use :execute with expand() and whatever else you want.
>

Thanks Ben, Tim, and others because I am learning this in small chunks
and it keeps improving my production level. Some times it just takes
one or two small pieces to help me figure out how to put all the other
pieces together. You guys are awesome!

--
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

No comments: