summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2012-05-16 15:31:33 +0100
committerRichard Maw <richard.maw@codethink.co.uk>2012-05-16 15:31:33 +0100
commit592b8c975bf83b4dcf608769bc664a80cb1daf9e (patch)
tree4d2c0d751c7013dffcf1d6b28d73eb272e1039d4
parentf4400034f76e61067b116a31698d12fcb37b7f87 (diff)
downloadvim-592b8c975bf83b4dcf608769bc664a80cb1daf9e.tar.gz
vim.morph: install example vimrc as /etc/vimrc
This sets things like nocompatible, so vim behaves like it usually does, rather than what vi does.
-rw-r--r--vim.morph9
1 files changed, 7 insertions, 2 deletions
diff --git a/vim.morph b/vim.morph
index b74d1294..599da706 100644
--- a/vim.morph
+++ b/vim.morph
@@ -3,7 +3,12 @@
"kind": "chunk",
"build-system": "autotools",
"configure-commands": [
- "echo '#define SYS_VIMRC_FILE \"/etc/vimrc\"' >>src/feature.h",
- "./configure --prefix=/usr --enable-multibyte"
+ "echo '#define SYS_VIMRC_FILE \"/etc/vimrc\"' >>src/feature.h",
+ "./configure --prefix=\"$PREFIX\" --enable-multibyte"
+ ],
+ "install-commands": [
+ "make DESTDIR=\"$DESTDIR\" install",
+ "mkdir -p \"$DESTDIR\"/etc",
+ "install -m 644 runtime/vimrc_example.vim \"$DESTDIR\"/etc/vimrc"
]
}