summaryrefslogtreecommitdiffstats
path: root/tv/2configs/vim.nix
diff options
context:
space:
mode:
authorjeschli <jeschli@gmail.com>2018-01-19 10:38:32 +0100
committerjeschli <jeschli@gmail.com>2018-01-19 10:38:32 +0100
commit4918ddf9ecba6c7604065b1b5f3d50bf25d66e4d (patch)
tree1b5fbd66868b0cdff8793fff2c68909d86d7d28f /tv/2configs/vim.nix
parent595b5de0bd57e3f9567ff8554fd49e43b3d9c7b1 (diff)
parent09abdb667c4c9da77d854a10c8614c22916e639d (diff)
Merge branch 'master' of prism.r:stockholm
Diffstat (limited to 'tv/2configs/vim.nix')
-rw-r--r--tv/2configs/vim.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/tv/2configs/vim.nix b/tv/2configs/vim.nix
index 59619f9b5..6598393a2 100644
--- a/tv/2configs/vim.nix
+++ b/tv/2configs/vim.nix
@@ -297,7 +297,7 @@ let {
viminfo = "$HOME/.cache/vim/info";
};
- mkdirs = let
+ need-dirs = let
dirOf = s: let out = concatStringsSep "/" (init (splitString "/" s));
in assert out != ""; out;
alldirs = attrValues dirs ++ map dirOf (attrValues files);
@@ -308,7 +308,7 @@ let {
paths = [
(pkgs.writeDashBin "vim" ''
set -efu
- (umask 0077; exec ${pkgs.coreutils}/bin/mkdir -p ${toString mkdirs})
+ (umask 0077; exec ${pkgs.coreutils}/bin/mkdir -p ${toString need-dirs})
exec ${pkgs.vim}/bin/vim "$@"
'')
pkgs.vim