[Vimperator] about vimperatorrc
jorlon
jorlon at 163.com
Sun Jun 22 12:36:52 PDT 2008
I use portable firefox3 too. So, it's very inconvenient to copy
the file of "vimperatorrc" and the DIR of "vimperator" to someone's
$HOME direcotry every time when I used others PC.
Now I do this dirtly method by expediency--make a BAT file for windows:
----------------------------------------------------------
@set VIMPERATOR_HOME=%CD%
start .\FirefoxPortable.exe
----------------------------------------------------------
SUGGESTION:
Learn from aMSN program's method:
In order to get aMSN as a portable application, in other words, installing it on a usb key for example and your profiles/configuration stays in the usb key, all you have to do is modify a few lines in the 'amsn' file of the installation of aMSN. Open the file 'amsn' with your favorite text editor (emacs, vi, notepad, etc...) and search for the lines that look like this
------------------------------------------------------------------------
if { [OnDarwin] } {
set HOME "[file join $env(HOME) Library/Application\ Support/amsn]"
} elseif { [OnUnix] } {
set HOME "[file join $env(HOME) .amsn]"
} elseif { [OnWin] } {
if {[info exists env(USERPROFILE)]} {
set HOME "[file join $env(USERPROFILE) amsn]"
} else {
set HOME "[file join [pwd] amsn_config]"
}
} else {
set HOME "[file join [pwd] amsn_config]"
}
-----------------------------------------------------------------------
And replace all those lines by :
-----------------------------------------------------------------------
set HOME "[file join [pwd] amsn_config]"
-----------------------------------------------------------------------
You can find the file 'amsn' in your installation directory of aMSN (under the 'script/' directory for Windows users).
2008-06-23
jorlon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.mozdev.org/pipermail/vimperator/attachments/20080623/33533ea5/attachment.html
More information about the Vimperator
mailing list