.vim/windows-vimfiles.sh

changeset 130
906ce6af31f6
child 189
39f8cd12ec5c
new file mode 100644
--- /dev/null
+++ b/.vim/windows-vimfiles.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+set -euo pipefail
+IFS=$'\n\t'
+
+if [ ! -L ~/userprofile ]; then
+  echo "Please link ~/userprofile"
+fi
+
+USERPROFILE="$(readlink ~/userprofile)"
+
+cd `hg root`
+
+cp -vu .vimrc ${USERPROFILE}/_vimrc
+
+if [ ! -d ${USERPROFILE}/vimfiles ]; then
+  mkdir ${USERPROFILE}/vimfiles
+fi
+
+cp -vuRL -t ${USERPROFILE}/vimfiles .vim/*
+

mercurial