my vim setup, as a nix flake
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.7KB

  1. customPlugins: self: super: {
  2. ta = {
  3. vim = super.vim_configurable.customize {
  4. name = "vim";
  5. vimrcConfig = {
  6. pathogen = {
  7. knownPlugins = super.vimPlugins // (customPlugins super);
  8. pluginNames = [
  9. "vim-racket"
  10. "haskell-vim"
  11. "rainbow-vim"
  12. "vimwiki"
  13. "vim-sexp-mappings-for-regular-people"
  14. "vim-sexp"
  15. "vim-surround"
  16. "vim-repeat"
  17. "slimv"
  18. ];
  19. };
  20. customRC = ''
  21. set nocompatible
  22. filetype on
  23. filetype plugin on
  24. filetype indent on
  25. syntax on
  26. set encoding=utf-8
  27. set autoindent
  28. set smartindent
  29. set ignorecase
  30. set smartcase
  31. set hlsearch
  32. set history=100
  33. set number
  34. set wildmenu
  35. set backspace=eol,indent,start
  36. set tabstop=2 softtabstop=2 expandtab shiftwidth=2 smarttab
  37. autocmd BufNewFile,BufRead *.rkt set filetype=scheme
  38. autocmd FileType scheme :packadd vim-sexp
  39. autocmd FileType scheme :packadd vim-sexp-for-regular-people
  40. autocmd FileType scheme :packadd vim-surround
  41. autocmd FileType scheme :packadd vim-repeat
  42. autocmd FileType scheme :packadd slimv
  43. autocmd FileType scheme :packadd vim-racket
  44. autocmd BufNewFile,BufRead *.hoon set filetype=hoon
  45. autocmd FileType hoon :packadd hoon-vim
  46. let g:rainbow_active = 1
  47. let g:rainbow_ctermfgs = [ 'lightblue', 'lightgreen', 'yellow', 'red', 'magenta']
  48. '';
  49. };
  50. };
  51. };
  52. }