27 lines
461 B
Nix
27 lines
461 B
Nix
{ 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
|
|
'';
|
|
};
|
|
} |