I think having a separate app for editing files makes more sense on iOS. There's iVim, for example (https://itunes.apple.com/us/app/ivim/id1266544660?mt=8).
Maintaining history sounds like a neat feature, thanks for your feedback!
Would it be possible to have an 'open' command that opens any file in their respective app? Maybe even configurable aliases like 'vim' to open files in a specific app (iVim) -- hence my other comment about support for a .bashrc
I think you can use curl to accomplish that for many apps. That’s the secret sauce of Workflow.