diff options
author | tv <tv@krebsco.de> | 2017-03-15 02:10:31 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2017-03-15 02:10:31 +0100 |
commit | 40b76de87c2e97a8e6341d604810d7e8675bd945 (patch) | |
tree | 94f94914e8123a79fccacd76787bcc969b80bf23 | |
parent | 6f83f30126edbcc867165b4c03d016bc327e236d (diff) |
tv vim: use concat
-rw-r--r-- | tv/2configs/vim.nix | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/tv/2configs/vim.nix b/tv/2configs/vim.nix index 1ffafe9..8b83b05 100644 --- a/tv/2configs/vim.nix +++ b/tv/2configs/vim.nix @@ -297,14 +297,18 @@ let { alldirs = attrValues dirs ++ map dirOf (attrValues files); in unique (sort lessThan alldirs); - vim = pkgs.writeDashBin "vim" '' - set -efu - (umask 0077; exec ${pkgs.coreutils}/bin/mkdir -p ${toString mkdirs}) - if test $# = 0 && test -e "$PWD/.ctrlpignore"; then - set -- +CtrlP - fi - exec ${pkgs.vim}/bin/vim "$@" - ''; + vim = pkgs.concat "vim" [ + pkgs.vim_configurable + (pkgs.writeDashBin "vim" '' + set -efu + (umask 0077; exec ${pkgs.coreutils}/bin/mkdir -p ${toString mkdirs}) + if test $# = 0 && test -e "$PWD/.ctrlpignore"; then + set -- +CtrlP + fi + # vim-orgmode needs Python, thus vim_configurable instead of just vim + exec ${pkgs.vim_configurable}/bin/vim "$@" + '') + ]; vimrc = pkgs.writeText "vimrc" '' set nocompatible |