Replace vim_configurable with vim

This commit is contained in:
coolneng 2019-11-06 23:40:47 +01:00
parent b50b743858
commit e46f4088c0
2 changed files with 1 additions and 32 deletions

View File

@ -18,10 +18,10 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
raspberrypi-tools raspberrypi-tools
(import ./modules/vim.nix)
git git
tmux tmux
htop htop
vim
]; ];
# File systems configuration for using the installer's partition layout # File systems configuration for using the installer's partition layout

View File

@ -1,31 +0,0 @@
# Vim configuration
with import <nixpkgs> {};
vim_configurable.customize {
name = "vim";
vimrcConfig.customRC = ''
""Basic stuff
set number
set ttyfast
""Colors
colorscheme synthwave
set t_Co=256
""Misc
set clipboard=unnamedplus
set nofoldenable
""Spaces instead of tabs
set expandtab
set tabstop=2
set shiftwidth=2
""Don't litter swp files everywhere
set backupdir=~/.cache
set directory=~/.cache
""Keybindings
set pastetoggle=<F2>
let mapleader="\<Space>"
nnoremap <leader>n :noh<cr>
"Move the current line up or down
nnoremap <leader>k :m-2<cr>==
nnoremap <leader>j :m+<cr>==
'';
}