Advertisement
Guest User

Untitled

a guest
Apr 21st, 2017
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. {config,pkgs,...}:
  2.  
  3. let
  4. myVim = pkgs.vim_configurable.customize {
  5. name = "vim";
  6. vimrcConfig = {
  7. customRC = ''
  8. syntax on
  9. set nu
  10. set foldmethod=syntax
  11. set listchars=tab:->
  12. set list
  13. set backspace=indent,eol,start
  14. set autoread
  15. au FocusGained,BufEnter * :silent! !
  16. nmap <F3> :!ninja <enter>
  17. map <F7> :tabp<enter>
  18. map <F8> :tabn<enter>
  19. set expandtab
  20. set softtabstop=2
  21. set shiftwidth=2
  22. set autoindent
  23. call vundle#begin()
  24. Plugin 'wakatime/vim-wakatime'
  25. call vundle#end()
  26. '';
  27. vam.pluginDictionaries = [
  28. {
  29. names = [ "vim-nix" "youcompleteme" "Syntastic" "vundle" ];
  30. }
  31. ];
  32. };
  33. };
  34. in
  35. {
  36. environment.systemPackages = [ myVim ];
  37. environment.shellAliases.vi = "vim";
  38. environment.variables.EDITOR = "vim";
  39. programs.bash.shellAliases = {
  40. vi = "vim";
  41. };
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement