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.

55 line
1.3KB

  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. ];
  14. };
  15. customRC = ''
  16. set nocompatible
  17. filetype on
  18. filetype plugin on
  19. filetype indent on
  20. syntax on
  21. if has("autocmd")
  22. au BufReadPost *.rkt,*.rktl set filetype=racket
  23. au filetype racket set lisp
  24. au filetype racket set autoindent
  25. endif
  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. let g:rainbow_active = 1
  38. let g:rainbow_ctermfgs = [ 'lightblue', 'lightgreen', 'yellow', 'red', 'magenta']
  39. imap <C-L> λ
  40. '';
  41. };
  42. };
  43. };
  44. }