Monday, January 14, 2013

Re: Use current file name in the current file?

On Mon, Jan 14, 2013 at 11:11 AM, Ben Fritz <fritzophrenic@gmail.com> wrote:
> On Sunday, January 13, 2013 3:18:49 PM UTC-6, Jack Gates wrote:
>> I think I saw something earlier about being able to use the current
>>
>> file name in the current file. But now I can't find what I saw
>>
>> earlier. I have been in too many help files today.
>>
>>
>>
>> I hope some one understands what I am trying to ask.
>
> In what context? Do you want to insert the file name into the file? Access the file name on the command-line? Something else? If you tell us what you're trying to accomplish we can help better.
>

I was thinking about using the file name in a mapping doing s///
editing a chunk of text dumped in the file from a register. I really
don't know what to ask because I don't really understand this enough
to figure out how I might use it. In one of my emails I was asking
about doing s/// and using the contents from a register on the RHS.
Doing this manually is easier to accomplish than it is trying to get a
mapping to do things automated so I don't have to do it manually.
Figuring out how to use "% will probably also answer my question in
the newest post I made today.

I have a series of commands that are nearly complete. So I can yank
some text execute the mapping and have it create a new file from start
to finish with the yanked text.

The problem with Vim is there is so much it can do and so much to
learn it is hard to take it all in without some time to process new
information first.

I have overloaded on help files all weekend.

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