>> You might be able to use something like
>>
>>   :exec 'lcd '.fnamemodify(system('chase '.expand('%')),':p:h')
[snip]
> 
> There is
>     :h resolve()

Well knock me over with a feather...yeah, never knew Vim had that 
functionality built-in (still learning Vim stuff almost 10 years 
of using it).

That simplifies my reply to just

   :exec 'lcd '.fnamemodify(resolve(expand('%')), ':p:h')

with no reliance on external applications.

-tim



--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to