summaryrefslogtreecommitdiffstats
path: root/vim.nix
diff options
context:
space:
mode:
authorSkullheadx <admonty1@protonmail.com>2026-05-01 13:03:52 -0400
committerSkullheadx <admonty1@protonmail.com>2026-05-01 13:03:52 -0400
commitc2ee657d5390137764fba5ea015fee4ec8989aef (patch)
tree9e43ddbf1c087127fea66a290553fa0227f1a6a0 /vim.nix
parentfix scrolling title script (diff)
downloadnixos-c2ee657d5390137764fba5ea015fee4ec8989aef.tar.gz
nixos-c2ee657d5390137764fba5ea015fee4ec8989aef.tar.bz2
nixos-c2ee657d5390137764fba5ea015fee4ec8989aef.zip
make shell config file
Diffstat (limited to 'vim.nix')
-rw-r--r--vim.nix18
1 files changed, 16 insertions, 2 deletions
diff --git a/vim.nix b/vim.nix
index 80e1ed2..90db98d 100644
--- a/vim.nix
+++ b/vim.nix
@@ -1,5 +1,19 @@
{config, pkgs, ... }:
{
+
+ environment.systemPackages = with pkgs; [
+ (lib.lowPrio pkgs.vim-full) # Lower Vim's priority
+ (pkgs.writeShellApplication {
+ name = "vi";
+ runtimeInputs = [ pkgs.nvi ];
+ text = ''
+ exec ${pkgs.nvi}/bin/vi "$@"
+ '';
+ })
+ neovim
+ ];
+
+
environment.etc."vimrc".text = ''
set autoread
au FocusGained,BufEnter * silent! checktime
@@ -54,8 +68,8 @@ set number relativenumber
" Force the cursor to a Block when Vim starts
-let &t_ti .= "\e[2 q"
-let &t_te .= "\e[2 q"
+let &t_ti = &t_ti . "\e[2 q"
+let &t_te = &t_te . "\e[2 q"
let &t_EI = "\e[2 q"
let &t_SI = "\e[2 q"
'';