Linux.md Change Default Text Editor¶ Run the following to set it for the current session export $EDITOR=/usr/bin/vim Add the above to .zshrc to set the custom editor permanently.