Created
October 3, 2017 21:51
-
-
Save CementTheBlock/6c6bc6974f120fbbece9dc67db7da390 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{config,pkgs,...}: | |
let | |
myVim = pkgs.vim_configurable.customize { | |
name = "vim-with-plugins"; | |
vimrcConfig = { | |
customRC = '' | |
set nocompatible | |
syntax on | |
set hidden | |
set wildmenu | |
set showcmd | |
set hlsearch | |
set ignorecase | |
set smartcase | |
set backspace=indent,eol,start | |
set autoindent | |
set ruler | |
set laststatus=2 | |
set confirm | |
set visualbell | |
set number | |
set notimeout ttimeout ttimeoutlen=200 | |
set pastetoggle=<F2> | |
set shiftwidth=2 | |
set shiftround | |
set softtabstop=4 | |
set expandtab | |
map Y y$ | |
set t_Co=256 | |
nnoremap <C-L> :nohl<CR><C-L> | |
let mapleader = "," | |
colorscheme colorful256 | |
''; | |
vam.pluginDictionaries = [ | |
{ | |
names = [ | |
"vim-colorschemes" | |
"vim-nix" | |
]; | |
} | |
]; | |
}; | |
}; | |
in | |
{ | |
environment.systemPackages = [ myVim ]; | |
environment.shellAliases.vi = "vim"; | |
environment.variables.EDITOR = "vim"; | |
programs.bash.shellAliases = { | |
vi = "vim"; | |
svim = "sudo vim"; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment