New to me, but I take it that you mean how to get this permanent:
Quote:
-Estr
Use editor setting given by str (default: the value of the EDITOR environment variable). Any occurrences of %d and %s in the editor option are replaced by the start line number and the name of the file to be edited, respectively. A common setting is “vi +%d %s".
|
I don't have the faintest idea of what hugs98 is, so I'll present only one possible solution here. If there is a configuration file to that program, and it allows you to set a default editor, you should do that (maybe /etc/hugs.conf or something? no?) However you have other options. You could use either alias (alias the command so that when you run hugs98, you actually run hugs98 -E"vi +%d %s") or set your editor variable to point to vi(m) instead of whatever it is pointing at.
For changing the editor variable, you can do a search here.
For the alias, you could run
Code:
alias hugs98='hugs98 -E"vi +%d %s"'
Not sure if the quotes inside quotes make life difficult, but I'm hoping that if you first use ' ' quotes and " " inside them, it's ok. Play around if it's not working. The alias should only be in use "for now", so when you reboot don't expect it to be there. Instead you can add that line to your .bash_profile or something, so it's run every time you run bash. Then when you run 'hugs98', the aliased command is actually run..