473,466 Members | 3,167 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Text editor

sid
Hi!
I am sorry that I am asking a little off topic question, but I am
sure some of you can surely help me. I am writiing a VI like text
editor in C++ for the console. I would like to know some opensource
tools that would help me build it faster. Also, What would be the best
approach to build it?
Thank You.
Mar 20 '08 #1
12 1995
sid wrote:
Hi!
I am sorry that I am asking a little off topic question, but I am
sure some of you can surely help me. I am writiing a VI like text
editor in C++ for the console. I would like to know some opensource
tools that would help me build it faster. Also, What would be the best
approach to build it?
gcc?

I'm sorry, your answer is too nonspecific to even being to pointing out
possible help, let alone the question being off topic.

Read the faq, that will certainly help in getting good C++ code when you
do get to write it. If you have any questions about the FAQ then you're
in luck here !

Mar 20 '08 #2
On Mar 20, 5:35 am, sid <kingsiddha...@gmail.comwrote:
Hi!
I am sorry that I am asking a little off topic question, but I am
sure some of you can surely help me. I am writiing a VI like text
editor in C++ for the console. I would like to know some opensource
tools that would help me build it faster. Also, What would be the best
approach to build it?
How about VI? It provides VI-like text editor functionality that you
can add to your console application with just a single API call:

system("vi");
Thank You.
Jason
Mar 20 '08 #3
sid <ki***********@gmail.comwrote in news:f3103bba-029d-47fc-a804-
a9**********@d4g2000prg.googlegroups.com:
Hi!
I am sorry that I am asking a little off topic question, but I am
sure some of you can surely help me. I am writiing a VI like text
editor in C++ for the console. I would like to know some opensource
tools that would help me build it faster. Also, What would be the best
approach to build it?
Thank You.
To reuse vi code? The Linux implementation should be open-source AFAIK. If
this does not suit you you could at least use ncurses (these are a bit
portable so should be not totally outlawed in this ng).

hth
Paavo
Mar 20 '08 #4
James Kanze <ja*********@gmail.comwrote:
Linux doesn't really have vi, only vim. And although vim does
have a vi compatible mode, it also has a lot more.
Actually, Linux doesn't "have" any particular editor.

Linux distributions and users can "have" a choice of editors.
For example, I have (on Linux...) elvis, nvi, vim and vile
(as well as some other editors). nvi is closer to vi than vim.

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
Mar 22 '08 #5
On 22 mar, 15:03, Thomas Dickey <dic...@saltmine.radix.netwrote:
James Kanze <james.ka...@gmail.comwrote:
Linux doesn't really have vi, only vim. And although vim does
have a vi compatible mode, it also has a lot more.
Actually, Linux doesn't "have" any particular editor.
Linux distributions and users can "have" a choice of editors.
For example, I have (on Linux...) elvis, nvi, vim and vile (as
well as some other editors). nvi is closer to vi than vim.
In a certain sense, that's true of all systems. And the
"official" standard editor of Posix (and presumably Posix-like)
systems, like Linux, is ed. Still, there is a generally
accepted sense in which vi is the "standard" Unix editor, and at
least in the Linux distributions I've seen, /usr/bin/vi is a
symbolic link to vim. (Of course, if you actually have any real
editing job to do, you'll invoke gvim or emacs. At least under
Unix or Windows---people working on mainframes have different
habits.)

--
James Kanze (GABI Software) email:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
Mar 22 '08 #6
James Kanze wrote:
least in the Linux distributions I've seen, /usr/bin/vi is a
symbolic link to vim. (Of course, if you actually have any real
editing job to do, you'll invoke gvim or emacs.
Why gvim, as opposed to vim? I almost exclusively use vim inside GNU
screen, inside a terminal emulator.
Mar 22 '08 #7
On Mar 22, 12:20 pm, Jeff Schwab <j...@schwabcenter.comwrote:
James Kanze wrote:
least in the Linux distributions I've seen, /usr/bin/vi is a
symbolic link to vim. (Of course, if you actually have any real
editing job to do, you'll invoke gvim or emacs.

Why gvim, as opposed to vim? I almost exclusively use vim inside GNU
screen, inside a terminal emulator.
Emacs is the best of all. Vim sucks. Also Windows has way better text
editors than Linux.
Mar 22 '08 #8
ja************@gmail.com wrote:
On Mar 22, 12:20 pm, Jeff Schwab <j...@schwabcenter.comwrote:
>James Kanze wrote:
>>least in the Linux distributions I've seen, /usr/bin/vi is a
symbolic link to vim. (Of course, if you actually have any real
editing job to do, you'll invoke gvim or emacs.
Why gvim, as opposed to vim? I almost exclusively use vim inside GNU
screen, inside a terminal emulator.

Emacs is the best of all. Vim sucks. Also Windows has way better text
editors than Linux.
Yeah, if you like taking your hands off the keyboard. Vi (or even --
gasp -- emacs) is much better if you're a touch typist.
Mar 22 '08 #9
James Kanze <ja*********@gmail.comwrote:
On 22 mar, 15:03, Thomas Dickey <dic...@saltmine.radix.netwrote:
>James Kanze <james.ka...@gmail.comwrote:
Linux doesn't really have vi, only vim. And although vim does
have a vi compatible mode, it also has a lot more.
>Actually, Linux doesn't "have" any particular editor.
>Linux distributions and users can "have" a choice of editors.
For example, I have (on Linux...) elvis, nvi, vim and vile (as
well as some other editors). nvi is closer to vi than vim.
In a certain sense, that's true of all systems. And the
"official" standard editor of Posix (and presumably Posix-like)
systems, like Linux, is ed. Still, there is a generally
vi's been standard for a while...

http://www.opengroup.org/onlinepubs/...lities/vi.html
accepted sense in which vi is the "standard" Unix editor, and at
least in the Linux distributions I've seen, /usr/bin/vi is a
symbolic link to vim. (Of course, if you actually have any real
Most of them (not all).
editing job to do, you'll invoke gvim or emacs. At least under
Unix or Windows---people working on mainframes have different
habits.)
probably not (though I've started each this week, it was only to check
a detail).

hand

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
Mar 23 '08 #10
On 22 mar, 17:20, Jeff Schwab <j...@schwabcenter.comwrote:
James Kanze wrote:
least in the Linux distributions I've seen, /usr/bin/vi is a
symbolic link to vim. (Of course, if you actually have any real
editing job to do, you'll invoke gvim or emacs.
Why gvim, as opposed to vim? I almost exclusively use vim
inside GNU screen, inside a terminal emulator.
Because:-). I don't really know why---if I'm inside an xterm,
I'll often invoke vim, but most of the time, I want to edit and
invoke make from a separate window.

--
James Kanze (GABI Software) email:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
Mar 23 '08 #11
On 22 mar, 18:01, "jason.cipri...@gmail.com"
<jason.cipri...@gmail.comwrote:
On Mar 22, 12:20 pm, Jeff Schwab <j...@schwabcenter.comwrote:
James Kanze wrote:
least in the Linux distributions I've seen, /usr/bin/vi is
a symbolic link to vim. (Of course, if you actually have
any real editing job to do, you'll invoke gvim or emacs.
Why gvim, as opposed to vim? I almost exclusively use vim inside GNU
screen, inside a terminal emulator.
Emacs is the best of all. Vim sucks. Also Windows has way
better text editors than Linux.
I've never had the occasion to really use any purely Windows
editors intensively enough to form an opinion, but all of the
best Windows programmers I've met seem to use emacs or vim (most
often emacs), rather than a purely Windows editor.

My own experience with emacs is that I causes carpal tunnel
syndrome, because of the complicated positions it requires my
hand to take. (Escape-Meta-Alt-Control-Shift:-).) Perhaps with
a different keyboard layout, but I've never taken the time to
study the possibilities. And this does seem to be personal, I
know more than a few very competent programmers who swear by
emacs (and who touch type, like I do), and don't seem to have
problems with it.

What I like about vim, of course, is that I never have to move
my hand from the base position for touch typing, and I rarely
have to use key combinations other than with shift (and the
shift key is placed in a way to make this comfortable). The
result is that I can work considerably faster with vim than with
any other editor.

--
James Kanze (GABI Software) email:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
Mar 23 '08 #12
On 23 mar, 01:39, Thomas Dickey <dic...@saltmine.radix.netwrote:
James Kanze <james.ka...@gmail.comwrote:
On 22 mar, 15:03, Thomas Dickey <dic...@saltmine.radix.netwrote:
James Kanze <james.ka...@gmail.comwrote:
Linux doesn't really have vi, only vim. And although vim does
have a vi compatible mode, it also has a lot more.
Actually, Linux doesn't "have" any particular editor.
Linux distributions and users can "have" a choice of editors.
For example, I have (on Linux...) elvis, nvi, vim and vile (as
well as some other editors). nvi is closer to vi than vim.
In a certain sense, that's true of all systems. And the
"official" standard editor of Posix (and presumably Posix-like)
systems, like Linux, is ed. Still, there is a generally
vi's been standard for a while...
http://www.opengroup.org/onlinepubs/...lities/vi.html
Still, I've used Unix where it wasn't present. (I *can* work
with ed if I have to.)
accepted sense in which vi is the "standard" Unix editor, and at
least in the Linux distributions I've seen, /usr/bin/vi is a
symbolic link to vim. (Of course, if you actually have any real
Most of them (not all).
As I said, the ones I've seen (Mandriva, SuSE and RedHat). Of
course, any administrator can change this anyway he wishes.
editing job to do, you'll invoke gvim or emacs. At least under
Unix or Windows---people working on mainframes have different
habits.)
probably not (though I've started each this week, it was only
to check a detail).
Some six or seven years ago, I was working on a project where we
where communicating with mainframes. I was offered an
introductory course, so that I could work on them as well. The
first day, they presented the editor. It was 3270 based, with
all of the commands on the function keys, and you had to mark
the lines before editing them. (The actual "editing" took place
locally, on the terminal.) At least there, that was the
standard way of working on the mainframe, and it was a far cry
from anything I've seen under Windows or Unix. Or anything I
really wanted to get into:-).

Thinking about it, of course, it wouldn't surprise me if a lot
of mainframe programmers simply downloaded the files, edited
them on a Windows machine, then uploaded them.

--
James Kanze (GABI Software) email:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
Mar 23 '08 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Ed Suominen | last post by:
I'm thinking of implementing a real-time collaborative text editor in Python using Twisted. An initial plan is to use a Twisted PB server daemon that accepts user:password:file connections from...
27
by: Eric | last post by:
Assume that disk space is not an issue (the files will be small < 5k in general for the purpose of storing preferences) Assume that transportation to another OS may never occur. Are there...
1
by: IkBenHet | last post by:
Hello, I found this script to create a simple rich text form (http://programmabilities.com/xml/index.php?id=17): <html> <head> <title>Rich Text Editor</title> </head> <body>
14
by: SD | last post by:
I am thinking about writing a text editor in C for unix sometime soon. I am just doing this to learn more about C. I want to write something like ed.c, a simple line editor. What types of data...
2
by: Rudy Ray Moore | last post by:
Hi guys, I just upgraded to "Visual Studio .net 2003 7.1 c++" from VS6. Some things I like (proper for loop variable scoping, for example), but some other things are troubling me. One...
4
by: pbreah | last post by:
I'm doing a Rich Text Editor (WYSIWYG) in javascript for a game for kids. I'm doing a special case in with every keystroke from A-Z creates a background and foreground color for that letter, witch...
0
by: karen987 | last post by:
Could someone please tell me what code to add here? I have a weblog, with daily news which readers can add comments to, which are stored in a database. The form to add the comments is on an ASP page,...
36
by: karen987 | last post by:
My newsweblog has ASP pages with news articles and a commenting system. The comments are posted, and to read them the reader clicks on the headline of the comment, and it opens up in a pop up window....
1
by: Victor | last post by:
Hi guys I have a small question abou the vs2005's text editor. in my text editor, any space or tabs become little dot. i forget what shortcut i pressed.It looks not right to me at all. Can anyone...
3
by: danesh1354 | last post by:
Hi All, First I need to construct a text editor by python programming and add this code to a biger code that has been written before, and i would like that by my code for this editor have a...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.