The best solution is probably to write your own editor, that way you get what you want, and you also get experiance writing a tool.
Even if it isn't the greatest ed ever written, you can see where you've gone right/wrong and improve upon it for next time.
Take it easy,
-Mezz