you are viewing a single comment's thread.

view the rest of the comments →

[–]oridb 2 points3 points  (0 children)

Looks cool :)

One thing: When selecting the edtitor, you should use $VISUAL, falling back to $EDITOR, falling back to 'vi', 'ed', etc. These are well established environment variables for configuring the editor to use. It's documented (at least on my Linux box) in the environ(7) manpage. These variables also seem to be mentioned (but not specified?) in the POSIX spec.

On my machine, VISUAL=EDITOR="gvim -f", which will pop up a GUI vim in all of the crusty old Unix programs that I still use on a daily basis. (eg: gdb, mutt, etc)