newlisp.vim 1.35

Notices and updates
Locked
Cyril
Posts: 183
Joined: Tue Oct 30, 2007 6:27 pm
Location: Moscow, Russia
Contact:

newlisp.vim 1.35

Post by Cyril »

I've just realized that I haven't visited this forum for a half-year now. I am still using newLISP, just feeling less social about it. ;-) And now is the time for a new version of the syntax highlighter for the Vim text editor. This version is highly experimental, testing and feedback is highly appreciated. User-visible changes:

* String delimiters ("quotes", {braces}, and [text]tokens[/text]) are highlighted in different color than the string content.

* Bracketed symbols [like this] are highlighted in boldface; no other symbols are highlighted in boldface anymore (the newlispSymbolSpecial group is gone).

* Errors highlighting is drastically changed. The newLISP itself allows tokens to touch without a separator, this leads to very strange code in some cases. For example, 019 is two tokens, not one (digit nine may not occur in octal literal, so it starts a fresh new number). Similarly, one[two] is one single token, but [one]two are two (check this with your newLISP interpreter!). I believe that using this feature in the real code leads to confusion, therefore the adjacent tokens are marked as errors (to be precise, the second of two adjacent tokens is marked as error, this should give you a clue why there are two and not one!). You can see some corner case examples here.

Downloadable from the usual locations (one, two). And again, this is an experimental version, please test it before using in production!
With newLISP you can grow your lists from the right side!

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Re: newlisp.vim 1.35

Post by cormullion »

I've been using vim recently and your newlisp.vim file is working fine. But I'm downloading your latest version and will tell you of any problems. Usually, with vim, I assume I've done something wrong (it's not the easiest software to become a master of), so you may not get many bug reports...

TedWalther
Posts: 608
Joined: Mon Feb 05, 2007 1:04 am
Location: Abbotsford, BC
Contact:

Re: newlisp.vim 1.35

Post by TedWalther »

I like using vim. Can you explain something?

I like to have "autoindent" like in emacs. Is there a way to turn this on?

The horrible indenting behavior is making me flip flop between vim and emacs; vim for editing, emacs for formatting!

Now, admittedly, I'd like tabs longer than 2 spaces deep. 4 would be plenty. And I would like dragonfly style for close braces.

Can your vim mode do this?
Cavemen in bearskins invaded the ivory towers of Artificial Intelligence. Nine months later, they left with a baby named newLISP. The women of the ivory towers wept and wailed. "Abomination!" they cried.

TedWalther
Posts: 608
Joined: Mon Feb 05, 2007 1:04 am
Location: Abbotsford, BC
Contact:

Re: newlisp.vim 1.35

Post by TedWalther »

I especially like that in emacs, I hit tab anywhere on the line, and it just correctly indents the whole line.
Cavemen in bearskins invaded the ivory towers of Artificial Intelligence. Nine months later, they left with a baby named newLISP. The women of the ivory towers wept and wailed. "Abomination!" they cried.

kanen
Posts: 145
Joined: Thu Mar 25, 2010 6:24 pm
Contact:

Re: newlisp.vim 1.35

Post by kanen »

I've been writing code with your updated newlisp.vim since you posted in this thread.

I shared a screen shot of my vim terminal in another thread, but thought you'd want to see it here.

MacVim (plus a bunch of extras installed).

Image
. Kanen Flowers http://kanen.me .

TedWalther
Posts: 608
Joined: Mon Feb 05, 2007 1:04 am
Location: Abbotsford, BC
Contact:

Re: newlisp.vim 1.35

Post by TedWalther »

Kanen, did you get auto-indent to work, or did you indent your code by hand? It looks nicely formatted, like how I want it.
Cavemen in bearskins invaded the ivory towers of Artificial Intelligence. Nine months later, they left with a baby named newLISP. The women of the ivory towers wept and wailed. "Abomination!" they cried.

Locked