{ config, lib, pkgs, this, ... }: with lib; let cfg = config.nixfiles.modules.vim; in { config = mkIf cfg.enable { programs.vim.package = (pkgs.vim-full.override { features = "normal"; cscopeSupport = false; darwinSupport = false; guiSupport = if this.isHeadful then "gtk3" else false; luaSupport = false; multibyteSupport = false; netbeansSupport = false; nlsSupport = false; perlSupport = false; pythonSupport = false; rubySupport = false; tclSupport = false; ximSupport = false; }) .customize { name = "vim"; vimrcConfig = with cfg; { customRC = rc; packages.myVimPackage.start = plugins; }; }; }; }