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.4KB

  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. "rainbow-vim"
  10. "vimwiki"
  11. "slimv"
  12. "vim-racket"
  13. "idris2"
  14. ];
  15. };
  16. customRC = ''
  17. set nocompatible
  18. filetype on
  19. filetype plugin on
  20. filetype indent on
  21. syntax on
  22. colorscheme delek
  23. if has("autocmd")
  24. au BufReadPost *.rkt,*.rktl set filetype=racket
  25. au filetype racket set lisp
  26. au filetype racket set autoindent
  27. endif
  28. set encoding=utf-8
  29. set autoindent
  30. set smartindent
  31. set ignorecase
  32. set smartcase
  33. set hlsearch
  34. set history=100
  35. set number
  36. set wildmenu
  37. set backspace=eol,indent,start
  38. set tabstop=2 softtabstop=2 expandtab shiftwidth=2 smarttab
  39. let g:rainbow_active = 1
  40. imap <C-L> λ
  41. let g:rainbow_conf = {
  42. \ 'ctermfgs': ['red', 'green', 'blue', 'cyan', 'magenta'],
  43. \ 'cterms': ['bold']
  44. \}
  45. '';
  46. };
  47. };
  48. };
  49. }