my vim setup, as a nix flake
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

69 linhas
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. "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. colorscheme delek
  22. if has("autocmd")
  23. au BufReadPost *.rkt,*.rktl set filetype=racket
  24. au filetype racket set lisp
  25. au filetype racket set autoindent
  26. endif
  27. set encoding=utf-8
  28. set autoindent
  29. set smartindent
  30. set ignorecase
  31. set smartcase
  32. set hlsearch
  33. set history=100
  34. set number
  35. set wildmenu
  36. set backspace=eol,indent,start
  37. set tabstop=2 softtabstop=2 expandtab shiftwidth=2 smarttab
  38. au VimEnter * RainbowParenthesesToggle
  39. au Syntax * RainbowParenthesesLoadRound
  40. au Syntax * RainbowParenthesesLoadSquare
  41. au Syntax * RainbowParenthesesLoadBraces
  42. let g:rbpt_colorpairs = [
  43. \ ['brown', 'RoyalBlue3'],
  44. \ ['Darkblue', 'SeaGreen3'],
  45. \ ['darkgray', 'DarkOrchid3'],
  46. \ ['darkgreen', 'firebrick3'],
  47. \ ['darkcyan', 'RoyalBlue3'],
  48. \ ['darkred', 'SeaGreen3'],
  49. \ ['darkmagenta', 'DarkOrchid3'],
  50. \ ]
  51. imap <C-L> λ
  52. '';
  53. };
  54. };
  55. };
  56. }