Make It Entirely Portable on Windows

953 views
Skip to first unread message

Lan ZORG

unread,
Apr 29, 2012, 8:59:28 AM4/29/12
to spf13-vi...@googlegroups.com

I would like to create a portable setup of this amazing vim distribution on Windows.

  • I put PortableGit on my USB key and I launched "git-cmd.cmd" file.
  • I launched the "spf13-vim-windows-install.cmd" file but it put the vim config on my User directory.

What I must change in the script to make compatible with my gVim installation "E:\PortableApps\gVimPortable"?

Thank you in advance!

Rory Samson

unread,
Jun 4, 2012, 8:37:48 AM6/4/12
to spf13-vi...@googlegroups.com
I've managed to do it.

All you need to do is download spf13-vim using Git following the windows install notes.  Then manually copy the contents of \.spf13-vim-3 to gVimPortable\Data\settings

You will need to make a symlink to .vimrc from a file called _vimrc in that same folder, or a line in the original _vimrc file like this:

source $HOME/.vimrc
 
This is so that your portable vim uses the spf13-vim configuration file.

Open gVim Portable via it's exe, and type ":BundleInstall"

Wait for Bundles to be loaded.

If all went well you will have a fully portable spf13-vim, although if you want to update in the usual way, via vundle using git and curl, you will need to set them up in every computer you use. 

Rory Samson

unread,
Jun 4, 2012, 8:41:59 AM6/4/12
to spf13-vi...@googlegroups.com
I'm new to VIM myself, and wanted to do the same thing.  Once I realized you needed to use vundle, typing run :BundleInstall from within Vim to get the plugins it all made sense.  Again, I'm no expert, and there may be a better way to achieve what you want, but that is working for me.

喻力科

unread,
Aug 2, 2012, 10:36:30 AM8/2/12
to spf13-vi...@googlegroups.com
Copy all files in  User directory 's .vim directory to your portable vim's directory

You must change some code in two files: 
1. .vimrc: replace ~/ to $VIM/
2. .vim/bundle/vundle/autoload/vundle.vim:  replace $HOME to $VIM



ingo.o...@gmail.com

unread,
Jul 3, 2014, 9:48:14 AM7/3/14
to spf13-vi...@googlegroups.com
Using the above mentioned details, I was finally able to perpare an USB Stick with a portable version of gVIM 7.4 and spf-13.

1) Download gVIM from portable apps and install it on an USB stick with NTFS. NTFS is required to enable the install procedure from SPf-13 to create links)

2) I created the Data\Settings dircetory as mentioned above

3) And downloaded the spf13-vim-windows-install.cmd. I modified the %HOME% settings to ensure that the spf-13 files are going into portable gvims $HOME

REM @if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH%
REM @if not exist "%HOME%" @set HOME=%USERPROFILE%
REM

@set HOME=I:\gVimPortable\Data\settings

4) Calling the modified cmd file, the install routine was able to create all required links and directories, Failing with the last step that is expected to call vim to install all vundle stuff.

5)Finally call gVim  manually and perform :BundleInstall and :BundleClean

As long as it is possible to mount the stick on the same drive letter everything will work

Cheers
Ingo
Reply all
Reply to author
Forward
0 new messages