Hi epanda!

On Do, 18 Feb 2010, epanda wrote:

> I know expand(%:p:h) to expand path but how to get the same begin of
> path from a path variable.
> 
> let mypath = "c:\\foo/bar/file.txt"
> 
> Can I avoid to use substitute command and use expand like function ?

:h fnamemodify()

regards,
Christian
-- 
Indes sie forschten, röntgten, filmten, funkten, entstand von selbst
die köstlichste Erfindung: der Umweg als die kürzeste Verbindung
zwischen zwei Punkten.
                -- Erich Kästner

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

Reply via email to