Vim

Decknix provides lightweight Vim enhancements on top of a sensible base config.

Base Config (All Profiles)

  • set exrc — load project-local .vimrc
  • set secure — restrict commands in project .vimrc
  • Line numbers enabled

Whitespace Module

Plugin: vim-better-whitespace

Automatically strips trailing whitespace on save.

OptionDefaultDescription
programs.vim.decknix.whitespace.enabletrue (standard profile)Enable whitespace cleanup
programs.vim.decknix.whitespace.stripModifiedOnlytrueOnly strip modified lines
programs.vim.decknix.whitespace.confirmfalsePrompt before stripping

Skim Module

Plugin: skim (fuzzy finder)

Integrates skim into Vim for fast file and buffer searching.

OptionDefaultDescription
programs.vim.decknix.skim.enabletrue (standard profile)Enable skim integration

Profiles

ProfileIncludes
minimalBase config only
standard (default)Base + whitespace + skim
customDisables framework Vim entirely
{ ... }: {
  decknix.editors.vim.profile = "minimal";
}

Adding Your Own Config

{ ... }: {
  programs.vim = {
    enable = true;
    plugins = [ pkgs.vimPlugins.vim-surround ];
    extraConfig = ''
      set relativenumber
    '';
  };
}