cleverca22
6/8/2016 - 8:13 PM

gistfile1.txt

{config,pkgs,...}:

let
  myVim = pkgs.vim_configurable.customize {
    name = "vim";
    vimrcConfig = {
      customRC = ''
        syntax on
        set nu
        set foldmethod=syntax
        set listchars=tab:->
        set list
        set backspace=indent,eol,start
        map <F7> :tabp<enter>
        map <F8> :tabn<enter>
        set expandtab
        set softtabstop=4
      '';
      vam.pluginDictionaries = [ { names = [ "vim-nix" ]; } ];
    };
  };
in
{
  environment.systemPackages = [ myVim ];
}