vim/overlay.nix

47 lines
1.1 KiB
Nix
Raw Normal View History

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 = [
2020-11-15 05:25:30 -05:00
"vim-racket"
2020-10-29 17:54:07 -04:00
"rainbow-vim"
"vimwiki"
2020-11-15 05:25:30 -05:00
"slimv"
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
2020-10-29 17:54:07 -04:00
syntax on
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']
'';
};
};
};
}