Skip to content

Instantly share code, notes, and snippets.

@cd01
Last active December 23, 2015 11:09
Show Gist options
  • Save cd01/6626379 to your computer and use it in GitHub Desktop.
Save cd01/6626379 to your computer and use it in GitHub Desktop.
#!/bin/sh
syntaxFileURL=http://vimperator-labs.googlecode.com/hg/vimperator/contrib/vim/syntax/vimperator.vim
if test -d ~/.vim; then
vimSyntaxDir=~/.vim/syntax
elif test -d ~/vimfiles; then
vimSyntaxDir=~/vimfiles/syntax
fi
if ! test -d $vimSyntaxDir; then
mkdir -p $vimSyntaxDir
fi
if test -d $vimSyntaxDir && ! test -f $vimSyntaxDir/vimperator.vim; then
wget $syntaxFileURL -O $vimSyntaxDir/vimperator.vim
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment