LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-12-2017, 11:30 AM   #16
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 5,788

Rep: Reputation: 2140Reputation: 2140Reputation: 2140Reputation: 2140Reputation: 2140Reputation: 2140Reputation: 2140Reputation: 2140Reputation: 2140Reputation: 2140Reputation: 2140

Quote:
Originally Posted by Xeratul View Post
what about ed?
I never realised that it's still part of the POSIX standard and I've got it installed! I can remember using edlin on DOS: not an experience I'd want to repeat.
 
Old 05-12-2017, 12:57 PM   #17
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,357

Original Poster
Rep: Reputation: 213Reputation: 213Reputation: 213
Quote:
Originally Posted by DavidMcCann View Post
I never realised that it's still part of the POSIX standard and I've got it installed! I can remember using edlin on DOS: not an experience I'd want to repeat.
edlin on DOS, still MS
"ed" was/is powerful.
 
Old 05-12-2017, 02:38 PM   #18
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,354
Blog Entries: 13

Rep: Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411
Quote:
Originally Posted by Xeratul View Post
Hello,

Let's discuss about possible good minimalist text editor?

A small editor is good for learning programming in C.

There is nano which is quite nice, but actually,there are much simpler.

Here a good one, tiny, and simple to compile.
Just a single file for a good learning experience.
https://pastebin.com/raw/smjP1xvK
You've written an editor. Great job! It does compile and work as an editor.

I like vi, and I like emacs.

I do not feel that a small editor is good for learning programming in C, or for continued code development.

Why do you feel it is good to have a small editor when learning C code?

I fully agree that a minimal text editor is great to have. I will continue to use vi as that minimal text editor since it is there on distributions.
 
Old 05-12-2017, 02:57 PM   #19
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 10,043

Rep: Reputation: 4619Reputation: 4619Reputation: 4619Reputation: 4619Reputation: 4619Reputation: 4619Reputation: 4619Reputation: 4619Reputation: 4619Reputation: 4619Reputation: 4619
Quote:
Originally Posted by Xeratul View Post
nice. vi source code is no longer so easy to find.
Would you settle for the source for elvis? It's Slackware's vi executable.

http://elvis.the-little-red-haired-girl.org/
 
Old 05-12-2017, 08:40 PM   #20
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,357

Original Poster
Rep: Reputation: 213Reputation: 213Reputation: 213
Quote:
Originally Posted by dugan View Post
Would you settle for the source for elvis? It's Slackware's vi executable.

http://elvis.the-little-red-haired-girl.org/
Elvis need a compilation try. Cool is elvis

I would be more interested by the portable form of original vi editor for testing.

Anyhow, vim is today replacing heavily vi, and you cannot find the source code of vi on debian, ubuntu, mepis,... from repositories.
 
Old 05-12-2017, 10:04 PM   #21
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
vi was elvis, or at least evolved from it. It's in the name: el(vi)s.

At least according to the linux books I bought in the late 90s that came with RH 5 and star office, that I only partially read.
 
Old 05-12-2017, 10:07 PM   #22
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_12{.0|.1}
Posts: 5,649
Blog Entries: 11

Rep: Reputation: 3684Reputation: 3684Reputation: 3684Reputation: 3684Reputation: 3684Reputation: 3684Reputation: 3684Reputation: 3684Reputation: 3684Reputation: 3684Reputation: 3684
Quote:
Originally Posted by Shadow_7 View Post
vi was elvis, or at least evolved from it. It's in the name: el(vi)s.
I am pretty sure that was the other way around - elvis was a vi clone, but right on the name.
 
Old 05-12-2017, 10:21 PM   #23
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_12{.0|.1}
Posts: 5,649
Blog Entries: 11

Rep: Reputation: 3684Reputation: 3684Reputation: 3684Reputation: 3684Reputation: 3684Reputation: 3684Reputation: 3684Reputation: 3684Reputation: 3684Reputation: 3684Reputation: 3684
From wikipedia, about the clones:

Quote:
While commercial vendors could work with Bill Joy's codebase (and continue to use it today), many people could not. Because Joy had begun with Ken Thompson's ed editor, ex and vi were derivative works and could not be distributed except to people who had an AT&T source license. People looking for a free Unix-style editor would have to look elsewhere. By 1985, a version of Emacs (MicroEMACS) was available for a variety of platforms, but it was not until June 1987 that Stevie (ST editor for VI enthusiasts), a limited vi clone, appeared.[23][24] In early January 1990, Steve Kirkendall posted a new clone of vi, Elvis, to the Usenet newsgroup comp.os.minix, aiming for a more complete and more faithful clone of vi than Stevie. It quickly attracted considerable interest in a number of enthusiast communities.[25][26] Andrew Tanenbaum quickly asked the community to decide on one of these two editors to be the vi clone in Minix;[27] Elvis was chosen, and remains the vi clone for Minix today.
Quote:
Originally Posted by Xeratul View Post
Elvis need a compilation try. Cool is elvis

I would be more interested by the portable form of original vi editor for testing.

Anyhow, vim is today replacing heavily vi, and you cannot find the source code of vi on debian, ubuntu, mepis,... from repositories.
Elvis is still the default on Slackware, too.

From the above article...

Quote:
Despite the existence of vi clones with enhanced featuresets, sometime before June 2000,[29] Gunnar Ritter ported Joy's vi codebase (taken from 2.11BSD, February 1992) to modern Unix-based operating systems, such as Linux and FreeBSD. Initially, his work was technically illegal to distribute without an AT&T source license, but, in January 2002, those licensing rules were relaxed,[30] allowing legal distribution as an open-source project. Ritter continued to make small enhancements to the vi codebase similar to those done by commercial Unix vendors still using Joy's codebase, including changes required by the POSIX.2 standard for vi. His work is available as Traditional Vi, and runs today on a variety of systems.
You can still get the source from the original heritage as ex-vi from the above link, but the last update look to be 10-11 years ago.
 
Old 05-12-2017, 10:37 PM   #24
Laserbeak
Member
 
Registered: Jan 2017
Location: Manhattan, NYC NY
Distribution: Mac OS X, iOS, Solaris
Posts: 508

Rep: Reputation: 143Reputation: 143
Cool, I downloaded and built ex-vi and it went into my /usr/local/bin which is above my vi that was just linked to vim.
 
Old 05-13-2017, 01:43 AM   #25
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,357

Original Poster
Rep: Reputation: 213Reputation: 213Reputation: 213
Quote:
Originally Posted by astrogeek View Post
You can still get the source from the original heritage as ex-vi from the above link, but the last update look to be 10-11 years ago.
From the ex-vi, you get EX, but no VI is compiled??
 
Old 05-13-2017, 04:08 AM   #26
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,604

Rep: Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604
as far as I know ex and vi are the same binaries with two different names, so you only need to link ...
 
Old 05-13-2017, 04:32 AM   #27
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,357

Original Poster
Rep: Reputation: 213Reputation: 213Reputation: 213
Quote:
Originally Posted by pan64 View Post
as far as I know ex and vi are the same binaries with two different names, so you only need to link ...
LINUX does not longer support VI. It is fairly replaced by heavy VIM.
Is *BSD* still officially supporting the original VI?
http://www.bsd.org/viref.html
Old stuff, why would BSD care about VI?

Last edited by Xeratul; 05-13-2017 at 05:03 AM.
 
Old 05-16-2017, 12:50 AM   #28
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,357

Original Poster
Rep: Reputation: 213Reputation: 213Reputation: 213
Quote:
Originally Posted by rtmistler View Post
It does compile and work as an editor.
You can give another try:
https://pastebin.com/raw/4a1j7Wn7

ESC goes to EDIT or VISUAL mode
It works as the famous "vi"
 
Old 05-18-2017, 08:34 PM   #29
Barkester
Member
 
Registered: Jan 2017
Location: SE Asia
Distribution: Arch
Posts: 67

Rep: Reputation: Disabled
Echo in the terminal has been described as the ultimate minimalist text editor. output to a text file and you're good.

Probly' too minimalist but there it is.
 
Old 05-18-2017, 11:07 PM   #30
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,357

Original Poster
Rep: Reputation: 213Reputation: 213Reputation: 213
Quote:
Originally Posted by Barkester View Post
Echo in the terminal has been described as the ultimate minimalist text editor. output to a text file and you're good.

Probly' too minimalist but there it is.
very minimal... what's the source code of your `echo` editor?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: What is a good text editor on Linux LXer Syndicated Linux News 0 06-11-2014 09:10 AM
[SOLVED] Java IDE or good text editor Nauntilus Programming 7 10-24-2010 12:46 PM
A good text editor...this should be simple. TheMusicGuy Linux - Software 9 10-06-2004 12:16 AM
good text editor doralsoral Linux - Software 3 02-19-2004 10:43 PM
Can anyone recommend a good text editor? MadCactus Linux - General 11 08-23-2003 12:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration