.vim/windows-vimfiles.sh

Wed, 14 Feb 2018 12:34:00 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 14 Feb 2018 12:34:00 -0500
changeset 679
2c32255d5c84
parent 527
1723448e286b
child 685
691e15efff36
permissions
-rw-r--r--

remove dotjs files

#!/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/*

cp -vu .vimperatorrc ${USERPROFILE}/

mkdir ${USERPROFILE}/{css,js} &>/dev/null || true
cp -vuRL -t ${USERPROFILE}/css .css/*
cp -vuRL -t ${USERPROFILE}/js .js/*

cat <<ENDINSTR
#  rebuilding vimproc dll on babun for w32 gvim:
#  $ pact install mingw-gcc-core
#  $ make -f make_mingw32.mak CC=i686-pc-mingw32-gcc

#  for w64 gvim:
#  $ pact install mingw64-x86_64-gcc-core
#  $ make -f make_mingw64.mak CC=x86_64-w64-mingw32-gcc
ENDINSTR

mercurial