I may be confused. You're just asking for how to open any file for editing? If so, in a shell just type:
Code:
vi /path/to/file/filename
Might actually want to 'man vi' before you do that so you'll know how it works.
And if I completely misunderstood your question, just ignore me and let me think I helped.
HTH