How dare you use a text editor because it's easy to use
You're viewing a single thread.
The best text editor is ‘$EDITOR’.
I think you mean "$EDITOR". Gotta have that variable expansion.
Not necessarily! I always run ln -s '/usr/bin/$EDITOR' $(which $EDITOR) after a fresh install, so I have a valid executable on the path called $EDITOR.
ln -s '/usr/bin/$EDITOR' $(which $EDITOR)
$EDITOR
Of course, then I have to make sure to add export EDITOR=\$EDITOR to my .bashrc. (Obviously.)
export EDITOR=\$EDITOR
.bashrc
Well,.that's one way to solve the problem of not expanding your editor var correctly...