{ config, lib, pkgs, ... }: with lib; let cfg = config.nixfiles.modules.vim; in { config = mkIf cfg.enable { programs.vim.package = (pkgs.vim-full.override { cscopeSupport = false; darwinSupport = false; features = "normal"; guiSupport = "gtk3"; 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; }; }; }; }