summaryrefslogtreecommitdiffstats
path: root/tv/2configs
diff options
context:
space:
mode:
Diffstat (limited to 'tv/2configs')
-rw-r--r--tv/2configs/vim.nix11
1 files 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" ''