anchor.diff:          source /etc/vimrc.local
         endif
       '';
  +
  +    programs.vim.package = pkgs.vim_configurable.customize {
  +      name = "vim";
  +      vimrcConfig.customRC = config.environment.etc."vimrc".text;
  +      vimrcConfig.vam = {
  +        knownPlugins = pkgs.vimPlugins // cfg.extraKnownPlugins;
  +        pluginDictionaries = cfg.plugins;
  +      };
  +    };
   
       programs.vim.plugins = mkIf cfg.enableSensible [
         { names = [ "fugitive" "surround" "vim-nix" ]; }
  
positive.code:       description = "VAM plugin dictionaries to use for vim_configurable.";
      };
  
      programs.vim.vimOptions = mkOption {
        internal = true;
        type = types.attrsOf (types.submodule text);
  
negative.code: 
      environment.systemPackages =
        [ # Include vim_configurable package.
          cfg.package
        ];
  
      environment.variables.EDITOR = "${cfg.package}/bin/vim";
  
      environment.etc."vimrc".text = ''
        ${vimOptions}
  