Setting default settings for vim and making the default editor globaly
This commit is contained in:
4 files changed
+28
-12
No files matched your search
@@ -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
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user