From 592b8c975bf83b4dcf608769bc664a80cb1daf9e Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Wed, 16 May 2012 15:31:33 +0100 Subject: 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. --- vim.morph | 9 +++++++-- 1 file 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" ] } -- cgit v1.2.1