Setting default settings for vim and making the default editor globaly

This commit is contained in:
metallaxis committed 2026-11-04 11:57:12 +02:00
1 parent 82fc703411
commit b2d083d695
4 files changed
+28 -12

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
{ config, pkgs, ... }:
{
programs.vim = {
defaultEditor = true;
customRC = ''
" Enable line numbers
set number
set relativenumber
" Indentation rules
set tabstop=4
set shiftwidth=4
set expandtab
" Better searching
set hlsearch
set incsearch
set ignorecase
set smartcase
" Enable syntax highlighting and mouse support
syntax on
set mouse=a
'';
};
}