Text editor in C

Hi,
I want to create a text editor in C on Unix. Can any1 jus tell me how to start with n wat all I have to look into if I have to write an editor..

Thanks

This sounds like a school project. We do not support homework this way.

I would download and research the source code from the GNU site for gedit or nano. Or maybe vim or elvis. Don't be surprised if this turns out to be a large effort.

Just so you can't say nobody warned you: the current version of GNU ed (1.4) has, as a tarball, a size of 89 KB. The UNIX version of vim has about 7MB. And the current version of GNU emacs needs a download of 21 MB