Detect text editor on Debian/Ubuntu