From 542a78403fe92c7690e985d19195087c10b0252f Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 1 Nov 2015 13:21:09 +0100 Subject: tv vim: so vimrc via VIMINIT --- tv/2configs/vim.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tv/2configs/vim.nix b/tv/2configs/vim.nix index 758dd506b..62ed02f74 100644 --- a/tv/2configs/vim.nix +++ b/tv/2configs/vim.nix @@ -66,11 +66,12 @@ let vim' = pkgs.writeScriptBin "vim" '' #! /bin/sh - set -eu - mkdir -p "$HOME"/.vim/backup - mkdir -p "$HOME"/.vim/cache - mkdir -p "$HOME"/.vim/undo - exec ${pkgs.vim}/bin/vim -u ${vimrc} "$@" + set -efu + ${pkgs.coreutils}/bin/mkdir -p "$HOME"/.vim/backup + ${pkgs.coreutils}/bin/mkdir -p "$HOME"/.vim/cache + ${pkgs.coreutils}/bin/mkdir -p "$HOME"/.vim/undo + export VIMINIT; VIMINIT=':so ${vimrc}' + exec ${pkgs.vim}/bin/vim "$@" ''; vimrc = pkgs.writeText "vimrc" '' -- cgit v1.2.3