Do you know how to replace Nano with nVim as the default editor? I am using the Fish shell and per their tutorial:
A universal variable is a variable whose value is shared across all instances of fish , now and in the future – even after a reboot. You can make a variable universal with set -U
Typing this, however, leads to problems.
~> set -U EDITOR /usr/bin/nvim
set: Universal variable 'EDITOR' is shadowed by the global variable of the same name.
I thought about just uninstalling Nano, but I don’t know if that’s the best solution. Thanks!
What do you mean by compatible? nvim is a different binary than vim, so the vim default settings won’t work for it. The files just set up system defaults:
# Ensure vim is set as EDITOR if it isn't already set
# This is set as a universal variable so that any other definition
# by the user would win
# Cf. https://fishshell.com/docs/current/index.html#variables-scope
if ! set -q EDITOR;
set -x EDITOR /usr/bin/vim
end
So, if you want to use nvim, set it for your user profile. That’ll be the simplest thing to do.