diff options
| author | Mel <einebeere@gmail.com> | 2024-01-08 18:25:30 +0000 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2024-01-08 18:25:30 +0000 |
| commit | 4e29b3423a1c56ba665c66124994178aae58d0d1 (patch) | |
| tree | d59904d540de4864977048911e4b929e43b5eae1 | |
| parent | 97f123c6b86671f3bd158d57849af529c24b3edb (diff) | |
| download | rnrd-4e29b3423a1c56ba665c66124994178aae58d0d1.tar.zst rnrd-4e29b3423a1c56ba665c66124994178aae58d0d1.zip | |
Add custom .vimrc
| -rw-r--r-- | configs/.vimrc | 60 | ||||
| -rw-r--r-- | configuration.nix | 11 |
2 files changed, 69 insertions, 2 deletions
diff --git a/configs/.vimrc b/configs/.vimrc new file mode 100644 index 0000000..79ae89a --- /dev/null +++ b/configs/.vimrc @@ -0,0 +1,60 @@ +" NECESSITIES: + +" disable vi compatability, if still on for some reason +set nocompatible + +" enable syntax highlight +syntax on + +" indent settings +set autoindent +set smarttab +set smartindent +set expandtab +set tabstop=4 +set softtabstop=4 +set shiftwidth=4 +set shiftround + +" disable text wrapping +set nowrap + +" allow backspace over everything, default is dumb +set backspace=indent,eol,start + +" never hide statusbar +set laststatus=2 + +" search settings +set incsearch +set hlsearch +set smartcase +set ignorecase +" map CTRL+L to remove search highlights +nnoremap <silent> <C-L> :noh<C-R><CR><CR><C-L> + +" open windows below and to the right of current (why is the default opposite lol) +set splitbelow splitright + +" show unfinished command in the last line (like 4dd) +set showcmd + +" show relative numbers and absolute number for current line +set number relativenumber + +" COLOR: + +" temporary default color scheme +colorscheme habamax + +" dont change default background color +highlight Normal ctermbg=NONE + +" CUSTOMIZATION: + +" disable arrow keys, use hjkl instead +noremap <Up> <Nop> +noremap <Down> <Nop> +noremap <Left> <Nop> +noremap <Right> <Nop> + diff --git a/configuration.nix b/configuration.nix index 5378d07..81df308 100644 --- a/configuration.nix +++ b/configuration.nix @@ -79,6 +79,12 @@ in }; programs = { + vim = { + defaultEditor = true; + package = pkgs.vim-full.customize { + vimrcFile = ./configs/.vimrc; + }; + }; fish.enable = true; git.enable = true; tmux.enable = true; @@ -89,10 +95,11 @@ in "${me.name}.rnrd.eu" = { root = "/var/www/html"; }; }; - environment.variables = { EDITOR = "vim"; }; + environment.systemPackages = with pkgs; [ - file unzip jq dig htop wget inetutils vim tcpdump + file unzip jq dig htop wget inetutils tcpdump ripgrep gnumake gdb + glances ]; } |
