Replace vim_configurable with vim
This commit is contained in:
parent
b50b743858
commit
e46f4088c0
|
@ -18,10 +18,10 @@
|
|||
|
||||
environment.systemPackages = with pkgs; [
|
||||
raspberrypi-tools
|
||||
(import ./modules/vim.nix)
|
||||
git
|
||||
tmux
|
||||
htop
|
||||
vim
|
||||
];
|
||||
|
||||
# File systems configuration for using the installer's partition layout
|
||||
|
|
|
@ -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>==
|
||||
'';
|
||||
}
|
Loading…
Reference in New Issue