On 18/02/09 15:21, bill lam wrote:
> On Wed, 18 Feb 2009, Tony Mechelynck wrote:
>> :!md ~/vimfiles
>> :!md ~/vimfiles/after
>> :!md ~/vimfiles/after/ftplugin
>> :e ~/vimfiles/after/ftplugin/html.vim
>
> Hi Tony,
>
> It is quite troublesome to explain where is $HOME to a window user.
> I use wine more often than real window now, On wine the vimfiles are
> placed just under c:\ so that I suppose the $HOME should be c:\
No, it isn't. C:\ is the same for everybody, while $HOME is different
for each login name. What cmd.exe sees as %USERPROFILE% (and Vim as
$USERPROFILE) is the most usual place, but you can change it by
explicitly setting the HOME environment variable. If you do, use a
location which is still "private" to that user. For instance, when I was
on Windows, I used to set it to "C:\Documents and Settings\Tony\My
Documents", which is, IIUC, one level down from the usual place.
To know where Vim sees $HOME, you can always use
:echo $HOME
It should normally not be unset, but if an environment variable variable
is unset and you try to ":echo" it, you won't get an error but just the
empty string.
>
> Btw does window understand ~ as prefix for $HOME or it is just vim
> that does the trick?
>
It's Vim that does the trick. ~ is the usual abbreviation for $HOME on
Unix shells, but cmd.exe, COMMAND.COM, 4NT.EXE, and other Dos/Windows
shells don't know about it. See also ":help $HOME".
Best regards,
Tony.
--
Frobnicate, v.:
To manipulate or adjust, to tweak. Derived from FROBNITZ.
Usually abbreviated to FROB. Thus one has the saying "to frob a
frob". See TWEAK and TWIDDLE. Usage: FROB, TWIDDLE, and TWEAK
sometimes connote points along a continuum. FROB connotes aimless
manipulation; TWIDDLE connotes gross manipulation, often a coarse
search for a proper setting; TWEAK connotes fine-tuning. If someone is
turning a knob on an oscilloscope, then if he's carefully adjusting it
he is probably tweaking it; if he is just turning it but looking at the
screen he is probably twiddling it; but if he's just doing it because
turning a knob is fun, he's frobbing it.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---