I think that the best editor that you can use is emacs, you can edit whatever you want there even assembler. I recomend that one, besides you can run commands whithin it. Regards.
Well, you can do all that in vim too ;) Don't call emacs or vim the best, it's a matter of taste! :p
(sorry I had to jump in with such a statement) Joris