Friday, June 8, 2012

Re: Need help for guitablabel

On Friday, June 8, 2012 5:21:16 AM UTC-5, oversky wrote:
> Is it possible to show only current directory on guitablabel?
> %F will show full path, but sometimes it's too long.
> For example, I have two files:
> C:\Doc\1\1.txt
> C:\Doc\2\1.txt
>
> I want to show 1\1.txt and 2\1.txt on guitablabel.

Use the fnamemodify() or expand() function. Something like expand("%:p:h:t").'/'.expand("%:t") should give you what you want, you just need to put it inside an appropriate function and call it from guitablabel.

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