There must be some assumptions here Or I am missing some context
It seems to me that the below example p:8 can only work if you know your path name only consists of one-node ??? What happens if your path name is "c:\lets have some fun\with silly mickey-soft windows" -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of John Beckett Sent: Monday, May 21, 2012 8:24 PM To: [email protected] Subject: RE: home_replace() does not work with short path name on windows. mattn wrote: >> If :p (on Windows) always produced the expanded long name, then >> :p:8 could be used if someone wanted the short full path. > > No. > > :echo fnamemodify('C:\Program Files', ':8:p') > C:\PROGRA~1 If there is a problem, please spell it out as the above is correct. >> I can't see a reason someone would need an 8.3 name expanded to >> anything other than its full long path (with :p), or its full short >> path (with :p:8). > > What we want is full long path. Currentl, :p don't return long full > long path. That's why I said *if* :p always produced the expanded long name, then :p:8 would be all that was needed to produce the equivalent short name. If :p produced the expanded long path, would there be a need for any further changes? Why? John -- You received this message from the "vim_dev" 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 -- You received this message from the "vim_dev" 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
