From 264fbdf2b46dc65dc913ec685eb6eaf229fa6bb0 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Mon, 9 Jan 2023 19:10:44 -0800 Subject: [PATCH] Set vim as default editor properly --- vim.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/vim.nix b/vim.nix index 3f2bad3..d5fa246 100644 --- a/vim.nix +++ b/vim.nix @@ -3,6 +3,7 @@ { programs.vim = { enable = true; + defaultEditor = true; extraConfig = '' " Temporary configuration for editing Nix files syntax on @@ -40,8 +41,4 @@ function! Words() hi StatusLine ctermfg=0 ctermbg=none cterm=bold " 0 for the terminal color 0 ''; }; - - home.sessionVariables = { - EDITOR = "vim"; - }; }