Comment on Ask HN: Looking for a Programable Text EditorComments−ktpsns3ySince vom and emacs were already proposed, there is a third classic in this round: Shell programming. Typically you have $EDITOR env set (to something like nano, vim, emacs, gedit, kwrite, etc) and then can include it in your script as in echo stuff >> worklog $EDITOR worklog && mailto someone etc−jmholla3yIf you want to handle `$EDITOR` not being set, at least in bash, you can use one of it's parameter expansion features: ${EDITOR:-vim} Will use vim if `$EDITOR` is unset.
Comments
Since vom and emacs were already proposed, there is a third classic in this round: Shell programming. Typically you have $EDITOR env set (to something like nano, vim, emacs, gedit, kwrite, etc) and then can include it in your script as in
etcIf you want to handle `$EDITOR` not being set, at least in bash, you can use one of it's parameter expansion features:
Will use vim if `$EDITOR` is unset.