Thursday, August 29, 2013

Re: get current file name with full path

On Friday, August 30, 2013 1:10:33 AM UTC+2, Jerry Dai wrote:
> Hi David,
> Did you mean I should create a "nmap" for <C-R> ?
> Can you elaborate?

No, it's literal. But you can create a mapping for this if you like of
course. Just as you would type

<C-R>%

in insert mode to get the file name, type the following in insert mode
to get the full file path:

<C-R>=expand("%:p")<Enter>

After this, the full file path will be inserted at the cursor position.

Best,

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: