2020-10-29 17:54:07 -04:00
|
|
|
customPlugins: self: super: {
|
|
|
|
ta = {
|
|
|
|
vim = super.vim_configurable.customize {
|
|
|
|
name = "vim";
|
|
|
|
vimrcConfig = {
|
|
|
|
pathogen = {
|
2020-11-15 05:25:30 -05:00
|
|
|
knownPlugins = super.vimPlugins // (customPlugins super);
|
2020-10-29 17:54:07 -04:00
|
|
|
pluginNames = [
|
|
|
|
"rainbow-vim"
|
|
|
|
"vimwiki"
|
2020-11-15 05:25:30 -05:00
|
|
|
"slimv"
|
2021-04-08 21:13:06 -04:00
|
|
|
"vim-racket"
|
2020-10-29 17:54:07 -04:00
|
|
|
];
|
|
|
|
};
|
|
|
|
customRC = ''
|
|
|
|
set nocompatible
|
2020-11-15 05:25:30 -05:00
|
|
|
|
|
|
|
filetype on
|
2020-10-29 17:54:07 -04:00
|
|
|
filetype plugin on
|
|
|
|
filetype indent on
|
2020-11-15 05:25:30 -05:00
|
|
|
|
2021-04-08 20:23:23 -04:00
|
|
|
|
|
|
|
if has("autocmd")
|
|
|
|
au BufReadPost *.rkt,*.rktl set filetype=racket
|
|
|
|
au filetype racket set lisp
|
|
|
|
au filetype racket set autoindent
|
|
|
|
endif
|
2020-11-15 05:25:30 -05:00
|
|
|
|
2020-10-29 17:54:07 -04:00
|
|
|
set encoding=utf-8
|
2020-11-15 05:25:30 -05:00
|
|
|
|
2020-10-29 17:54:07 -04:00
|
|
|
set autoindent
|
|
|
|
set smartindent
|
2020-11-15 05:25:30 -05:00
|
|
|
|
2020-10-29 17:54:07 -04:00
|
|
|
set ignorecase
|
|
|
|
set smartcase
|
|
|
|
set hlsearch
|
|
|
|
set history=100
|
2020-11-15 05:25:30 -05:00
|
|
|
|
2020-10-29 17:54:07 -04:00
|
|
|
set number
|
|
|
|
set wildmenu
|
2020-11-15 05:25:30 -05:00
|
|
|
|
2020-10-29 17:54:07 -04:00
|
|
|
set backspace=eol,indent,start
|
2020-11-15 05:25:30 -05:00
|
|
|
set tabstop=2 softtabstop=2 expandtab shiftwidth=2 smarttab
|
2020-10-29 17:54:07 -04:00
|
|
|
|
|
|
|
let g:rainbow_active = 1
|
|
|
|
let g:rainbow_ctermfgs = [ 'lightblue', 'lightgreen', 'yellow', 'red', 'magenta']
|
2021-04-08 21:13:06 -04:00
|
|
|
|
|
|
|
imap <C-L> λ
|
2021-04-08 21:23:33 -04:00
|
|
|
syntax on
|
2020-10-29 17:54:07 -04:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|