Created
March 12, 2017 01:08
-
-
Save anonymous/e29c4b3c507704d14801318e82d5107a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{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 | |
nmap <F3> :!ninja <enter> | |
map <F7> :tabp<enter> | |
map <F8> :tabn<enter> | |
set expandtab | |
set softtabstop=2 | |
set shiftwidth=2 | |
''; | |
vam.pluginDictionaries = [ { names = [ "vim-nix" "youcompleteme" ]; } ]; | |
}; | |
}; | |
in | |
{ | |
environment.systemPackages = [ myVim ]; | |
environment.shellAliases.vi = "vim"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment