Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nixpkgs.config.packageOverrides = pkgs: rec {
- my-vim = pkgs.vim_configurable.customize {
- name = "vim"; # the vim binary name
- vimrcConfig.customRC = ''
- "
- set nocompatible " Use Vim defaults (much better!)
- set bs=2 " Allow backspacing over everything in insert mode
- set ai " Always set auto-indenting on
- set history=50 " keep 50 lines of command history
- set ruler " Show the cursor position all the time
- set viminfo='20,\"500 " Keep a .viminfo file
- map Q gq " Don't use Ex mode, use Q for formatting
- set numberwidth=3
- set nomodeline
- set laststatus=2
- set hidden
- "" set colorcolumn=80
- set ignorecase
- set smartcase
- set incsearch
- set hlsearch
- set expandtab
- set tabstop=3
- set shiftwidth=3
- autocmd FileType make setlocal noexpandtab
- autocmd FileType python set tabstop=4|set shiftwidth=4|set expandtab
- autocmd FileType haskell set tabstop=4|set shiftwidth=4|set expandtab
- set wildmode=longest,list,full
- autocmd FileType mail :nmap <F8> :w<CR>:!aspell -e -c %<CR>:e<CR>
- filetype plugin on
- filetype indent on
- runtime ftplugin/man.vim
- set printfont=Monospace\ 10
- map ,e :e <C-R>=expand("%:p:h") . "/" <CR>
- map ,sp :sp <C-R>=expand("%:p:h") . "/" <CR>
- map <F11> :let &background = ( &background == "dark" ? "light" : "dark" )<CR>
- set guifont=Monospace\ 14
- set background=dark
- syntax on
- let g:airline_powerline_fonts = 1
- color gruvbox
- let g:gruvbox_contrast_dark='hard'
- let g:gruvbox_contrast_light='hard'
- " color dracula
- " let g:airline_theme='dracula'
- '';
- vimrcConfig.vam.knownPlugins = pkgs.vimPlugins;
- vimrcConfig.vam.pluginDictionaries = [
- { name = "vim-airline"; }
- { name = "vim-airline-themes"; }
- { name = "vim-colors-solarized"; }
- { name = "vim-fugitive"; }
- { name = "vim"; } # dracula theme
- { name = "gruvbox"; }
- ];
- };
- my-emacs = pkgs.emacsWithPackages (epkgs: with epkgs; [
- #magit
- ]);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement