/ modules / home / programs / vim.nix
vim.nix
 1  { pkgs, ... }:
 2  {
 3    programs.vim = {
 4      enable = true;
 5  
 6      plugins = with pkgs.vimPlugins; [
 7        vim-nix
 8        vim-lastplace
 9      ];
10  
11      settings = {
12        shiftwidth = 4;
13        modeline = true;
14        smartcase = true;
15        expandtab = true;
16        ignorecase = true;
17        background = "dark";
18        relativenumber = true;
19      };
20  
21      extraConfig = ''
22        syntax on
23        set tabstop=4
24        set autoindent
25        set smartindent
26        set colorcolumn=80
27        colorscheme habamax
28        cmap w!! w !sudo tee > /dev/null %
29        set backspace=indent,eol,start
30      '';
31    };
32  }