Skip to content

Instantly share code, notes, and snippets.

@thisivan
Created October 26, 2011 00:31
Show Gist options
  • Save thisivan/1314957 to your computer and use it in GitHub Desktop.
Save thisivan/1314957 to your computer and use it in GitHub Desktop.
Change Vim file alias
#!/usr/bin/env sh
DEFAULT_VIM_PATH='/workspace/tools/vim'
if [[ ! -z $1 ]]; then
DEFAULT_VIM_PATH=$1
fi
rm ~/.vimrc
rm ~/.vim
`ln -s ~/.vim_$DEFAULT_VIM_PATH ~/.vim`
`ln -s ~/.vim_$DEFAULT_VIM_PATH/vimrc ~/.vimrc`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment