]> Skullheadx's Git Forge - nixos.git/commitdiff
vim configuration
authorSkullheadx <admonty1@protonmail.com>
Fri, 1 May 2026 16:46:33 +0000 (12:46 -0400)
committerSkullheadx <admonty1@protonmail.com>
Fri, 1 May 2026 16:46:33 +0000 (12:46 -0400)
configuration.nix
flake.lock
todo
vim.nix [new file with mode: 0644]

index 322bd0728ce9fca55fb305da93bc3b9065c48de7..523a32a5b5a0ff1306040e2926065cab919aa188 100644 (file)
@@ -11,6 +11,7 @@
     ./x11.nix
     ./hjem.nix
     ./audio.nix
+    ./vim.nix
   ];
 
   # Bootloader.
   '';
 
 
+
+
   programs.steam = {
     enable = true;
     remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
index 696e65ed4722a74332acaf6e185914aec9cef57e..90210a2e47eaa8a57e8b33cebd49f4fd920e49cc 100644 (file)
         ]
       },
       "locked": {
-        "lastModified": 1777498357,
-        "narHash": "sha256-Ij9dCS37935ieuSk67KtU+7pp9YVr6M3s5IhVkRd1Q0=",
+        "lastModified": 1777653948,
+        "narHash": "sha256-oJ4BGbTjsaD39xcI9V9ICsKz9oCRHpsxqxL4ZL8NJjw=",
         "owner": "Skullheadx",
         "repo": "slstatus",
-        "rev": "efd7e7de9197b0136b0f9a011e6a78d792991168",
+        "rev": "07e311ed5966079fbff18da4089279a77b60831b",
         "type": "github"
       },
       "original": {
diff --git a/todo b/todo
index ef58cdf0cf975eeb48e9f6dfc4632380bb60b863..a25da8fc3f78ff4a87cfb84193ff61e77bb6ef80 100644 (file)
--- a/todo
+++ b/todo
@@ -2,8 +2,6 @@
        - [x] autocomplete
        - [ ] auto cd like z
 
-
-
 - [ ] dunst notifs or look at herbe
 
 - [ ] RICE
diff --git a/vim.nix b/vim.nix
new file mode 100644 (file)
index 0000000..80e1ed2
--- /dev/null
+++ b/vim.nix
@@ -0,0 +1,62 @@
+{config, pkgs, ... }:
+{
+  environment.etc."vimrc".text = ''
+set autoread
+au FocusGained,BufEnter * silent! checktime
+
+" :W sudo saves the file
+" (useful for handling the permission-denied error)
+command! W execute 'w !sudo tee % > /dev/null' <bar> edit!
+
+" Turn on the Wild menu
+set wildmenu
+
+" Ignore compiled files
+set wildignore=*.o,*~,*.pyc
+set wildignore+=*/.git/*,*/.hg/*,*/.svn/*,*/.DS_Store
+
+
+set ruler
+
+set ignorecase
+set smartcase
+set hlsearch
+set incsearch
+set lazyredraw
+set magic
+set showmatch
+
+syntax enable
+set noswapfile
+
+" Use spaces instead of tabs
+set expandtab
+
+" Be smart when using tabs ;)
+set smarttab
+
+" 1 tab == 4 spaces
+set shiftwidth=4
+set tabstop=4
+
+" Linebreak on 500 characters
+set lbr
+set tw=500
+
+set ai "Auto indent
+set si "Smart indent
+set wrap "Wrap lines
+
+" Always show the status line
+set laststatus=2
+
+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_EI = "\e[2 q"
+let &t_SI = "\e[2 q"
+  '';
+}