Set vim as default editor properly
This commit is contained in:
parent
c11f434e72
commit
264fbdf2b4
1 changed files with 1 additions and 4 deletions
5
vim.nix
5
vim.nix
|
@ -3,6 +3,7 @@
|
||||||
{
|
{
|
||||||
programs.vim = {
|
programs.vim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
defaultEditor = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
" Temporary configuration for editing Nix files
|
" Temporary configuration for editing Nix files
|
||||||
syntax on
|
syntax on
|
||||||
|
@ -40,8 +41,4 @@ function! Words()
|
||||||
hi StatusLine ctermfg=0 ctermbg=none cterm=bold " 0 for the terminal color 0
|
hi StatusLine ctermfg=0 ctermbg=none cterm=bold " 0 for the terminal color 0
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
home.sessionVariables = {
|
|
||||||
EDITOR = "vim";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue