On 08/06/12 16:41, Ben Fritz wrote:
> 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.
>
Yes, and see
:help expand()
:help fnamemodify()
:help filename-modifiers
Best regards,
Tony.
--
There are times when truth is stranger than fiction and lunch time is
one of them.
--
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
Friday, June 8, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment