Click to See Complete Forum and Search --> : Vi Source


MrNewbie
09-04-2001, 05:34 PM
Where can I get the Vi source, I looked on gnu.org and it wasn't there, I guess because it's older than gnu. I also tried looking for a link on the vim.org page but couldn't find one.
Can anyone tell me where I can get the source for vi or another text editor with as few features and as simple as possible? I want to write my own and there's a lot fo things that I am confused about in relation to text editors but I'd rather avoid having to look through a lot of code for various functions that I don't need to know about.
Thanks for any help.

Strike
09-04-2001, 05:58 PM
Try the editors (http://freshmeat.net/browse/63/) section of freshmeat.net

MrNewbie
09-04-2001, 06:18 PM
Thanks a lot from there I found the source for a bunch of text editors that I'm going to look at, some simpler than vi which is good.
Strangely though, I couldn't find the vi source, oh well.
Thanks

debiandude
09-04-2001, 06:24 PM
I dont' think you will find the source code for the original BSD version of vi. If you want the linux, bug-for-bug compatible version of vi, then you should look for the source code of nvi.

Craig McPherson
09-04-2001, 07:20 PM
Yes, nvi should be pretty close to identical to the original vi (that is to say, pretty atrocious), which I don't think you'll be able to find anywhere anymore. Vi is my editor of choice, as long as it's not the original vi.

And be sure to note that in a way, vi is just a front-end to ed, so you might want to check that out also. Ed isn't really fit for human use (edlin was based on it, if that tells you anything), but it's a good backend workhorse for vi.

jemfinch
09-05-2001, 12:04 AM
Originally posted by Craig McPherson:
And be sure to note that in a way, vi is just a front-end to ed

vi is a front-end to ex, not ed.

Jeremy

sans-hubris
09-05-2001, 01:22 AM
The original vi was proprietary. nvi, open source, is your best bet. Vim is the king.

Craig McPherson
09-05-2001, 01:33 AM
Originally posted by jemfinch:
<STRONG>vi is a front-end to ex, not ed.</STRONG>

Yep, you're right about that. My bad. It's been a long time since I've used ex!