Ben Schmidt wrote:
>> The only thing that requires a little care (IIUC) is to make sure that if 
>> the 
>> tilde is followed by a backslash, the latter is a "true" backslash and not 
>> an 
>> "escaper" backslash for something else than a backslash: in ~\foo, ~ means 
>> $HOME while in ~\ foo it doesn't, and the filename is "~ foo". But maybe I'm 
>> overcomplexifying.
> 
> Mmm. That seems true enough. But then who starts a filename with a tilde 
> anyway?!

Who knows? The point is that the tilde is a valid filename character on FAT 
filesystems, and is used extensively in 8.3 filenames, as in 
C:\PROGRA~1\MOZILL~2\ etc.

> 
> But what I was actually referring to was the ability to expand other users' 
> home 
> directories with ~user. That could be handy on Windows, too, but I don't know 
> what 
> hoops you might need to go through to reliably find other users' directories!

Neither do I, and AFAIK Vim never dit it -- yet. I guess it would be handy 
indeed, but I suppose this would rate as "improvement" rather than "normal" or 
"major" on a bug-severity scale. I think it would be possible, but not as easy 
as on Unix, since POSIX (or something) as a standard "/home/username/" (even 
for root where /home/root/ is a symlink to /root/) while IIRC the exact 
location of a user's home directory varies from one Windows version to the 
other. Or maybe there is some environment variable or some registry setting 
which could be brought to task, I don't know.

> 
>> Vim-for-Cygwin is a Unix-like build, the shell handles the tilde. This 
>> thread 
>> is only busy with native-window at this point.
> 
> O yes, of course. Easy.
> 
> Ben.

Best regards,
Tony.
-- 
In 1750 Issac Newton became discouraged when he fell up a flight of
stairs.


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui