On 17.03.2012 09:27, John Beckett wrote:
Timothy Madden wrote:
Actually there still is. A simple example program shows that
::GetLongPathName() has this effect, though admittedly it is
not explicitly documented as such.
Thanks! It is a long time since I searched for methods to get
the true name of a file, and I did not find that.
However, there are reports that GetLongPathName() on its own
does not work as it returns the path with the casing that it was
given. At the following is a claim that the solution is to call
GetShortPathName() and then GetLongPathName().
http://stackoverflow.com/questions/74451/getting-actual-file-name-with-proper-casing-on-windows
I don't think adding a "get true name" function to Vim would be
a high priority, but it would be useful with plugins like MRU
(Most Recently Used):
http://www.vim.org/scripts/script.php?script_id=521
Oh well with the above two functions (GetShortPathName/GetLongPathName)
it would not be so hard, and then I was thinking more of a modifier
(like %:p) than a function.
Timothy Madden
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php