Skip to content

Instantly share code, notes, and snippets.

@tokudan
Last active January 3, 2017 00:38
Show Gist options
  • Save tokudan/c92c0acc2766ceb06659363b815efba4 to your computer and use it in GitHub Desktop.
Save tokudan/c92c0acc2766ceb06659363b815efba4 to your computer and use it in GitHub Desktop.
environment.systemPackages = with pkgs; [
(import vim.nix)
[other packages]
];
with import <nixpkgs> {};
vim_configurable.customize {
# Specifies the vim binary name.
# E.g. set this to "my-vim" and you need to type "my-vim" to open this vim
# This allows to have multiple vim packages installed (e.g. with a different set of plugins)
name = "vim";
vimrcConfig.customRC = ''
set nu ai tabstop=4
'';
vimrcConfig.vam.knownPlugins = pkgs.vimPlugins;
vimrcConfig.vam.pluginDictionaries = [
{ names = [
# Here you can place all your vim plugins
# They are installed managed by `vam` (a vim plugin manager)
"Syntastic"
"rust-vim"
"vim-racer"
"vim-addon-nix"
]; }
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment