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

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -