Vim: how to convert file name to path? -
In the script, if I have a file name, how to get it? For example, I want to get a path to the use of the temporary directory Vime. I can get a name for the temporary file by calling Tempname (), but what is the way to remove path by name?
To remove the final path component:
fnamemodify (tempname) (), ": H")
Comments
Post a Comment