On 27/08/09 09:21, KF wrote: > > A. S. Budden wrote: >> >> I'm intrigued by this customisation. I have a compilation of vim >> without OLE that I use on my USB stick. This has: >> >> x:\vim\vim72\... >> x:\vim\vimfiles\... >> x:\vim\_vimrc >> x:\vim\_gvimrc >> >> (where x: is whatever drive letter the USB stick is allocated). >> >> These files are identical to the ones I have installed on the hard >> drive of the PC (except that gvim.exe doesn't have OLE compiled in) >> and in the same location (except replace x: with c:). I've never >> needed to set up environment variables or anything else and I get all >> of my customisations. So what is the launcher doing? What >> environment variables are being set? > > I have not tested it using this kind of setup before. > > As for the launcher, it basically sets the $VIM, $HOME and $RUNTIME > path to the paths on the USB stick/portable media. It also fix-up the > drive mappings of viminfo entries before start-up so that it matches > your current drive letter of the USB/stick/portable media. You can > look at the source of the launcher in the Other\Source folder for more > info. > > Please try it and comment! > > HTH, > KF
If $VIM and $VIMRUNTIME are unset at Vim startup (which is the default), and Vim is started as U:\vim\vim72\gvim.exe or U:\vim\vim72\vim.exe, it will set $VIM to U:\vim and $VIMRUNTIME to U:\vim\vim72 at startup, so you don't need to do that in a .bat wrapper. Also, on Windows, if there are no _vimrc or _gvimrc in $HOME, Vim will look for them in $VIM, so that isn't very necessary either. Looks that all that remains to be done is "doctoring" the viminfo. Best regards, Tony. -- hundred-and-one symptoms of being an internet addict: 121. You ask for e-mail adresses instead of telephone numbers. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
