3 ms·
Your comical bumbling with basic code editing is difficult to grasp. Auto-indentation and parenthesis matching has been a standard feature of any decent progra
by kazinator 6y ago
Your comical bumbling with basic code editing is difficult to grasp.
Auto-indentation and parenthesis matching has been a standard feature of any decent programming editor for decades.
Vim matches parentheses and C #ifdef out-of-the box, and indents Lisp. It did all that very well in the year 2000 when I started in Lisp.
A parenhesis matching command (the % key) has been in Vi since the 1970's, and the same is true of the Lisp mode (:set lisp) that handles the bulk of the indentation semantics. When you load a .lisp file, Vim turns on Lisp mode. That ancient invention is what does the indentation.
Nobody spends "considerable effort" formatting Lisp. Not even buffoons like me who use a Vi derivative, and who are ridiculed by Emacs users.
- WalterBright 6y agoOh I know I didn't invent paren matching, though I did add it to my editor in the 80's. I can claim invention of #if matching, though, as I implemented that in the 80's, too. Don't know of any prior art on that. Vim was vi at the time :-) and didn't have a Lisp mode at the time that I was aware of, and I haven't messed with Lisp since the 80's. And yes, I still find Lisp difficult to read, regardless of how its formatted. Infix reads much better for me.