Sunday, January 13, 2013

Re: Use current file name in the current file?

On 01/13/13 15:18, stosss 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.

the current file's name is stored in the "%" register, so you can
either paste it from Normal mode with

"%p

or you can dump it in Insert mode using <control+R> followed by %.

-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

No comments: