.vim/windows-vimfiles.sh

Fri, 27 Jan 2017 12:27:12 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Fri, 27 Jan 2017 12:27:12 -0500
changeset 490
ad833184063c
parent 332
8b1e01d4903d
child 527
1723448e286b
permissions
-rw-r--r--

Make this grey, not loud

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
189
39f8cd12ec5c Add note about vimproc build
Meredith Howard <mhoward@roomag.org>
parents: 130
diff changeset
22 # rebuilding vimproc dll on babun for w32 gvim:
39f8cd12ec5c Add note about vimproc build
Meredith Howard <mhoward@roomag.org>
parents: 130
diff changeset
23 # $ pact install mingw-gcc-core
39f8cd12ec5c Add note about vimproc build
Meredith Howard <mhoward@roomag.org>
parents: 130
diff changeset
24 # $ make -f make_mingw32.mak CC=i686-pc-mingw32-gcc
39f8cd12ec5c Add note about vimproc build
Meredith Howard <mhoward@roomag.org>
parents: 130
diff changeset
25
332
8b1e01d4903d add notes for w64 gvim
Meredith Howard <mhoward@roomag.org>
parents: 189
diff changeset
26 # for w64 gvim:
8b1e01d4903d add notes for w64 gvim
Meredith Howard <mhoward@roomag.org>
parents: 189
diff changeset
27 # $ pact install mingw64-x86_64-gcc-core
8b1e01d4903d add notes for w64 gvim
Meredith Howard <mhoward@roomag.org>
parents: 189
diff changeset
28 # $ make -f make_mingw64.mak CC=x86_64-w64-mingw32-gcc
189
39f8cd12ec5c Add note about vimproc build
Meredith Howard <mhoward@roomag.org>
parents: 130
diff changeset
29

mercurial