Live data from Hacker News

Design of a Vim-like text editor

lists.suckless.org

21–30 of 92 posts

Re: Design of a Vim-like text editor

#21
post #11

How about an embedded Lisp interpreter?

At one point, REPL first editors (ipython notebooks, etc) will meet edition based IDE (them) in an essential cosmic spark and nothing will ever be the same ever again.

IntelliJ sort of has this for Scala. Scala Worksheets. They are more useful than a REPL, but not quite to iPython in terms of features (mainly because they aren't browser based). But they also have some advantages over iPython (like integrating many of the IDE features).

Re: Design of a Vim-like text editor

#22
post #19

Earlier quoted context omitted.

At one point, REPL first editors (ipython notebooks, etc) will meet edition based IDE (them) in an essential cosmic spark and nothing will ever be the same ever again.

Isn't that LightTable? I think they discovered actually everything would remain largely the same.

Good point, how could I forgot LT...

Re: Design of a Vim-like text editor

#23
post #4

Why not write a rich-text editor instead? Or a webbrowser? Seriously. They seem like more interesting endeavours to me. Especially if you document every step of the way. In fact, you could write a book about it.

If it seems more interesting to you, then why don't you do it?

Re: Design of a Vim-like text editor

#24
post #21

Earlier quoted context omitted.

At one point, REPL first editors (ipython notebooks, etc) will meet edition based IDE (them) in an essential cosmic spark and nothing will ever be the same ever again.

IntelliJ sort of has this for Scala. Scala Worksheets. They are more useful than a REPL, but not quite to iPython in terms of features (mainly because they aren't browser based). But they also have some advantages over iPython (like integrating many of the IDE features).

Yeah everybody is approaching the solution from their angle, I just wondered if there was a center.

Re: Design of a Vim-like text editor

#26
post #21

Earlier quoted context omitted.

At one point, REPL first editors (ipython notebooks, etc) will meet edition based IDE (them) in an essential cosmic spark and nothing will ever be the same ever again.

IntelliJ sort of has this for Scala. Scala Worksheets. They are more useful than a REPL, but not quite to iPython in terms of features (mainly because they aren't browser based). But they also have some advantages over iPython (like integrating many of the IDE features).

PyCharm now offers the ability to open iPython notebooks inside itself - which gives you the nice IDE goodies, plus the notebook goodies.

The downside of course is that Python is very dynamic - so IDEs are of relatively limited use.

Re: Design of a Vim-like text editor

#27
So weird to see this at #1 since I was researching this exact topic last night. My idea is a fully scriptable (Racket or CL) editor with modern package management system. A tiny C core would handle rendering (curses, etc.). Very cool write up though!

Re: Design of a Vim-like text editor

#29
Instructions to compile the source on Freebsd:

in config.mk, change the line :

CFLAGS += -std=c99 -Os ${INCS} -DVERSION=\"${VERSION}\" -DNDEBUG -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700

to:

CFLAGS += -std=c99 -Os ${INCS} -DVERSION=\"${VERSION}\" -DNDEBUG

The flags (the removed ones), trigger the "__BSD_VISIBLE 0" macro that makes the signal "SIGWINCH" unavailable, as they are used in vis.c

Post reply on HN