diff options
Diffstat (limited to 'vim.nix')
| -rw-r--r-- | vim.nix | 34 |
1 files changed, 34 insertions, 0 deletions
@@ -0,0 +1,34 @@ +{ config, lib, pkgs, ... }: + +{ + programs.vim = { + enable = true; + + # to search vim plugins: + # nix-env -f '<nixpkgs>' -qaP -A vimPlugins + plugins = with pkgs.vimPlugins; [ + vim-fugitive + vim-sensible + vim-nix + editorconfig-vim + goyo-vim + fzf-vim + ]; + + settings = { + expandtab = true; + shiftwidth = 4; + tabstop = 4; + + hidden = true; + mouse = "a"; + number = false; + relativenumber = false; + }; + }; + + home.sessionVariables = { + VISUAL = "vim"; + EDITOR = "vim -e"; + }; +} |
