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

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -