Creating vim like text editor in c++

I want to create a vim like text editor in c/c++, but unfortunately i don't know from where to start. Can some one please guide me from where i can start my project. I have studied about ncruses library, but i don't want to use it. Can someone please guide me or tell me where i can get tutorial to create the text editor (mainly terminal one). Provide with the tutorial from where i can learn and improve my language skill.
vim is open source. You can download and study its code.
I tried to do so, but i wasn't able to follow up the code
Vim's code is fairly complex.

I want to create a vim like text editor in c/c++,
I have studied about ncruses library, but i don't want to use it.


You've essentially said, "I want to drive to the store, but I don't want to use a motor vehicle."

If you want to play with the console, use NCurses.

http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/
https://www.projectpluto.com/win32a.htm

Even on Windows, you may be tempted to do some stuff on your own. PDCurses is a much more advanced library for your needs, and makes it significantly easier to maintain a single code base for multiple operating systems.

Good luck!
varadekd wrote:
text editor in c/c++,

There is no such thing as "c/c++" (see for example http://www.stroustrup.com/bs_faq.html#C-slash ).
Which programming language do you actually intend to use?

I have studied about ncruses library, but i don't want to use it

What don't you like about ncurses and which console text library do you prefer to use instead?
There is no such thing as "c/c++"

My guess is that some people use it as a short form of C or C++
Cubbi is being a pedant because the term is being used in a nonsense context*, showing OP to be a rank newbie. So not only is he committing the error of choosing to be ignorant (I know nothing about this stuff, but the knowledge I have managed to gleam I reject), he is also committing the error of soliciting work from others (please provide all the details I need to accomplish my specific task).

To the OP: people have managed to write CUI text editors since the late '60s, using the tools available to them. If you wish to write one today, there is no better option than NCurses for your terminal control. No full-terminal editors exist (outside of some very specialized contexts) that don't use it, because it is *the* API for terminal control.

You will learn most of what you need by simply learning NCurses. The remaining parts are how you plan to handle files, and whatever top-level logic (subwindows, menus, configuration options, project management, etc) you wish to add to it.

JSYK, you've asked how to do one of the harder things to do in CS: text editors.**

*To explain: I can't go write a valid program in Pascal/O'Camel. I've got to pick one.

**Sure, anyone can whip up a simple Notepad-esque piece o'junk. Please don't.
Topic archived. No new replies allowed.