An improved xdg-open.
Primary LanguageShell
Just put your configurations in ~/.config/mime/mime.conf like this:
text/ : $TERMINAL -e vim