Skip to content

Instantly share code, notes, and snippets.

@CementTheBlock
Created October 3, 2017 21:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CementTheBlock/6c6bc6974f120fbbece9dc67db7da390 to your computer and use it in GitHub Desktop.
Save CementTheBlock/6c6bc6974f120fbbece9dc67db7da390 to your computer and use it in GitHub Desktop.
{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