.vim/windows-vimfiles.sh

Mon, 12 Jun 2017 17:20:38 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Mon, 12 Jun 2017 17:20:38 -0400
changeset 601
c1615fda063a
parent 527
1723448e286b
child 685
691e15efff36
permissions
-rw-r--r--

smarter jk maps

130
906ce6af31f6 Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
1 #!/bin/bash
906ce6af31f6 Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
2
906ce6af31f6 Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
3 set -euo pipefail
906ce6af31f6 Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
4 IFS=$'\n\t'
906ce6af31f6 Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
5
906ce6af31f6 Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
6 if [ ! -L ~/userprofile ]; then
906ce6af31f6 Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
7 echo "Please link ~/userprofile"
906ce6af31f6 Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
8 fi
906ce6af31f6 Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
9
906ce6af31f6 Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
10 USERPROFILE="$(readlink ~/userprofile)"
906ce6af31f6 Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
11
906ce6af31f6 Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
12 cd `hg root`
906ce6af31f6 Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
13
906ce6af31f6 Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
14 cp -vu .vimrc ${USERPROFILE}/_vimrc
906ce6af31f6 Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
15
906ce6af31f6 Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
16 if [ ! -d ${USERPROFILE}/vimfiles ]; then
906ce6af31f6 Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
17 mkdir ${USERPROFILE}/vimfiles
906ce6af31f6 Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
18 fi
906ce6af31f6 Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
19
906ce6af31f6 Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
20 cp -vuRL -t ${USERPROFILE}/vimfiles .vim/*
906ce6af31f6 Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
21
527
1723448e286b Get some vimperator stuff too
Meredith Howard <mhoward@roomag.org>
parents: 332
diff changeset
22 cp -vu .vimperatorrc ${USERPROFILE}/
1723448e286b Get some vimperator stuff too
Meredith Howard <mhoward@roomag.org>
parents: 332
diff changeset
23
1723448e286b Get some vimperator stuff too
Meredith Howard <mhoward@roomag.org>
parents: 332
diff changeset
24 mkdir ${USERPROFILE}/{css,js} &>/dev/null || true
1723448e286b Get some vimperator stuff too
Meredith Howard <mhoward@roomag.org>
parents: 332
diff changeset
25 cp -vuRL -t ${USERPROFILE}/css .css/*
1723448e286b Get some vimperator stuff too
Meredith Howard <mhoward@roomag.org>
parents: 332
diff changeset
26 cp -vuRL -t ${USERPROFILE}/js .js/*
189
39f8cd12ec5c Add note about vimproc build
Meredith Howard <mhoward@roomag.org>
parents: 130
diff changeset
27
527
1723448e286b Get some vimperator stuff too
Meredith Howard <mhoward@roomag.org>
parents: 332
diff changeset
28 cat <<ENDINSTR
1723448e286b Get some vimperator stuff too
Meredith Howard <mhoward@roomag.org>
parents: 332
diff changeset
29 # rebuilding vimproc dll on babun for w32 gvim:
1723448e286b Get some vimperator stuff too
Meredith Howard <mhoward@roomag.org>
parents: 332
diff changeset
30 # $ pact install mingw-gcc-core
1723448e286b Get some vimperator stuff too
Meredith Howard <mhoward@roomag.org>
parents: 332
diff changeset
31 # $ make -f make_mingw32.mak CC=i686-pc-mingw32-gcc
189
39f8cd12ec5c Add note about vimproc build
Meredith Howard <mhoward@roomag.org>
parents: 130
diff changeset
32
527
1723448e286b Get some vimperator stuff too
Meredith Howard <mhoward@roomag.org>
parents: 332
diff changeset
33 # for w64 gvim:
1723448e286b Get some vimperator stuff too
Meredith Howard <mhoward@roomag.org>
parents: 332
diff changeset
34 # $ pact install mingw64-x86_64-gcc-core
1723448e286b Get some vimperator stuff too
Meredith Howard <mhoward@roomag.org>
parents: 332
diff changeset
35 # $ make -f make_mingw64.mak CC=x86_64-w64-mingw32-gcc
1723448e286b Get some vimperator stuff too
Meredith Howard <mhoward@roomag.org>
parents: 332
diff changeset
36 ENDINSTR

mercurial