Skip to content

Instantly share code, notes, and snippets.

@cleverca22
Created October 21, 2017 00:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cleverca22/9c4a83b06121108607b54771a38ebbaa to your computer and use it in GitHub Desktop.
Save cleverca22/9c4a83b06121108607b54771a38ebbaa to your computer and use it in GitHub Desktop.
with import <nixpkgs> {};
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
nmap <F3> :!ninja <enter>
map <F7> :tabp<enter>
map <F8> :tabn<enter>
set expandtab
set softtabstop=2
set shiftwidth=2
set autoindent
'';
vam.pluginDictionaries = [
{
names = [
"vim-nix"
#"youcompleteme" "Syntastic" "vundle"
];
}
];
};
};
in stdenv.mkDerivation {
name = "vim-shell";
buildInputs = [ myVim ];
shellHook = ''
alias vi=vim
'';
EDITOR = "vim";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment