From 4e7a17e4c4cdda6eab2a0991b94b4c72ec809ed8 Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 9 Jun 2016 13:22:47 +0200 Subject: tv vim-syntax-vim: init at 1.0.0 --- tv/2configs/vim.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tv/2configs') diff --git a/tv/2configs/vim.nix b/tv/2configs/vim.nix index e6b9bf2..0eb67fc 100644 --- a/tv/2configs/vim.nix +++ b/tv/2configs/vim.nix @@ -44,6 +44,19 @@ let hi TrailingSpace ctermbg=88 ''; }))) + ((rtp: rtp // { inherit rtp; }) (pkgs.writeTextFile (let + name = "vim"; + in { + name = "vim-syntax-${name}-1.0.0"; + destination = "/syntax/${name}.vim"; + text = /* vim */ '' + ${concatMapStringsSep "\n" (s: /* vim */ '' + syn keyword vimColor${s} ${s} + \ containedin=ALLBUT,vimComment,vimLineComment + hi vimColor${s} ctermfg=${s} + '') (map (i: lpad 3 "0" (toString i)) (range 0 255))} + ''; + }))) ]; dirs = { -- cgit v1.2.3