vimPlugins: vim-sensible patch vimrc detection

The vimrc detection won't work if you are using the vim_configurable package
(which the nixos and home-manager module both do)
because vim-sensible only checks for files in the users home matches `~/...`
but in our case it gets called from a wrapper script which looks something like:
`vim -u /nix/store/.../vimrc`.

Janik H 9a98cd21 f0b0a2fa

+29
+4
pkgs/applications/editors/vim/plugins/overrides.nix
··· 1467 1467 dependencies = with self; [ denops-vim ]; 1468 1468 }; 1469 1469 1470 + vim-sensible = super.vim-sensible.overrideAttrs { 1471 + patches = [ ./patches/vim-sensible/fix-nix-store-path-regex.patch ]; 1472 + }; 1473 + 1470 1474 vim-snipmate = super.vim-snipmate.overrideAttrs { 1471 1475 dependencies = with self; [ vim-addon-mw-utils tlib_vim ]; 1472 1476 };
+25
pkgs/applications/editors/vim/plugins/patches/vim-sensible/fix-nix-store-path-regex.patch
··· 1 + From 07c799a1b170c0e28b385474b511c1034cfcb263 Mon Sep 17 00:00:00 2001 2 + From: Janik H <janik@aq0.de> 3 + Date: Sat, 16 Sep 2023 19:45:32 +0200 4 + Subject: [PATCH] fix nix store path regex 5 + 6 + --- 7 + plugin/sensible.vim | 2 +- 8 + 1 file changed, 1 insertion(+), 1 deletion(-) 9 + 10 + diff --git a/plugin/sensible.vim b/plugin/sensible.vim 11 + index 0fc26e0..b3ee6e9 100644 12 + --- a/plugin/sensible.vim 13 + +++ b/plugin/sensible.vim 14 + @@ -26,7 +26,7 @@ function! s:MaySet(option) abort 15 + silent verbose execute 'setglobal all' a:option . '?' 16 + redir END 17 + endif 18 + - return out !~# " \\(\\~[\\/][^\n]*\\|Lua\\)$" 19 + + return out !~# "/nix/store/.*" && out !~# " \\(\\~[\\/][^\n]*\\|Lua\\)$" 20 + endfunction 21 + 22 + if s:MaySet('backspace') 23 + -- 24 + 2.41.0 25 +