This repository acts as portable vimrc file, it allows me to clone my .vim folder anywhere I want and retain my settings

Directory structure

  1. Move your .vimrc to your .vim folder, and rename it vimrc
  2. Place <THIS> file inside the same folder - for example call it portable-viim.

Running vim

$ vim -u vimfolder/portable-vim

Retain compatibility

To make this compatible with the default Vim layout you can turn your .vimrc into a symlink:

ln -s ~/.vim/vimrc ~/.vimrc

This way you can keep your vimrc inside the .vim folder - and track the entire folder using a VCS.

Example workflow

Whenever I get on a terminal, my usual workflow goes like this:

  1. git clone http://..../vimrc
  2. cd vimrc
  3. git submodule init
  4. git submodule update
  5. vim -u portable-vim