Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #4 from edorian/install-script

A draft for a quick install script.
  • Loading branch information...
commit 534582e79607fbfc55bb2b803b555ff0898fcc76 2 parents e7a1571 + c440f92
@tobyS authored
Showing with 38 additions and 0 deletions.
  1. +15 −0 README.rst
  2. +23 −0 install.sh
View
15 README.rst
@@ -18,6 +18,21 @@ licensing is noted in the specific files, if different than my own.
.. contents::
+Installing the whole VIP package
+================================
+
+If you want to just use the whole VIP package, maybe because you don't have any
+vim settings yet, you can use the ``install.sh`` command.
+
+It will tell you to backup/remove your current vim configs and symlink the
+necessary VIP folders to your home directory.::
+
+ git clone https://github.com/tobyS/vip.git
+ cd vip
+ ./install.sh
+ # Don't remove your clone as the files are only symlinked
+
+
PDV - phpDocumentor for VIM
===========================
View
23 install.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+vippath=`readlink -f $0`
+vippath=`dirname $vippath`
+
+if [ -f ~/.vimrc ]
+then
+ echo "The ~/.vimrc file already exists. Backup or delete it to install VIP."
+ exit
+fi
+
+if [ -d ~/.vim ]
+then
+ echo "The ~/.vim folder already exists. Backup or delete it to install VIP."
+ exit
+fi
+
+ln -s $vippath"/.vim" ~/.vim
+ln -s $vippath"/.vimrc" ~/.vimrc
+
+echo "Installed"
+echo
+
Please sign in to comment.
Something went wrong with that request. Please try again.