Thursday, August 29, 2013

Re: get current file name with full path

Hey Jerry,

On Friday, August 30, 2013 12:50:47 AM UTC+2, Jerry Dai wrote:
> In insert mode, I will get current file name by:
> <C-R>%
>
> Is there anything similiar can give me a full hierarchical path?

how about

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

Best,
David

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