vim

For discussion on all things (neo)vim.
martinklepsch 2019-12-12T10:31:14.049400Z

@olical I've been looking into shadow+prepl again and was just wondering if it would be possible/make sense to write a small script that verifies some of the stuff you outlined in https://oli.me.uk/clojure-prepl-for-tool-authors/?

Olical 2019-12-12T10:34:18.050600Z

Definitely possible yep, I've been meaning to I just don't have the time. A prepl compliance test suite would be awesome. Something I can probably do over Christmas unless someone beats me to it.

martinklepsch 2019-12-12T10:46:47.051Z

would be happy to contribute to this but not sure what the best setup would be. I'm thinking something fairly basic like a bash script but not sure what the requirements really are. If there were a setup somewhere with a single test that I could contribute to that would help me a lot

Olical 2019-12-12T11:03:07.051200Z

I'll probably write a Clojure program for it, simple enough. I'll keep you posted and will share it in a few places when it's working. Again, unless you beat me to it 😛

Olical 2019-12-12T11:05:35.051400Z

You give it a host and port, it connects and tries a bunch of things. Will require some timeouts too since you can lock up a shadow prepl fairly easily by throwing an error 😬

martinklepsch 2019-12-12T11:38:45.051600Z

In my limited testing earlier throwing an error didn't lock up the prepl

martinklepsch 2019-12-12T11:38:51.051800Z

but ¯\(ツ)/¯

Olical 2019-12-12T11:43:47.052Z

Oooo interesting. Well, the testing tool will tell all I guess. Might write it over lunch at work if I have time

Olical 2019-12-12T11:43:49.052200Z

Or start it anyway

Olical 2019-12-12T13:24:40.052400Z

https://github.com/Olical/prepl-compliance-test I made a start, it tests :ret and :tap in a basic way but acts as a framework to easily add more.

Olical 2019-12-12T13:47:49.052700Z

Was from an hour hacking over lunch so I only wrote those two tests but I got the framework down to write more easily.

martinklepsch 2019-12-12T14:18:52.052900Z

🙌

dharrigan 2019-12-12T15:14:44.053600Z

Anyone got any hints/tips for word boundaries in vim that know about Clojure? i.e., full stops, forward slashes etc...?

dharrigan 2019-12-12T15:15:19.053900Z

i.e., if I delete a word, it deletes up to the word boundary

Jan K 2019-12-12T15:27:15.054500Z

@dharrigan vim-clojure-static should handle it https://github.com/guns/vim-clojure-static

dharrigan 2019-12-12T15:29:18.054800Z

ta

dominicm 2019-12-12T15:34:12.055100Z

Which is built in

dominicm 2019-12-12T15:34:17.055300Z

You don't need the plugin

Jan K 2019-12-12T15:35:49.055700Z

Oh, I didn't realize it's built in now

dominicm 2019-12-12T15:37:45.056500Z

It has been forever. I think its currently up to date too.

dominicm 2019-12-12T15:38:15.056800Z

Maybe I'm misremembering

dave 2019-12-12T17:11:48.057500Z

i still have it in my vimrc for some reason :thinking_face:

dave 2019-12-12T17:12:22.058200Z

i did remove https://github.com/guns/vim-clojure-highlight a while back, and i remember that that adds some highlighting that isn't present out of the box, like highlighting core functions a different color, or something like that

dave 2019-12-12T17:12:39.058700Z

ah, it says it right there in the repo description

dave 2019-12-12T17:12:47.059Z

it highlights referred and aliased vars

dave 2019-12-12T17:13:21.059200Z

requires fireplace

dave 2019-12-12T17:14:40.059800Z

coming back to vim-clojure-static, it isn't clear to me either how up to date the version of that that comes with vim is

dave 2019-12-12T17:15:38.060800Z

it was last updated over 2 years ago, so i think there's a good chance that vim's is up to date now and there's no need for the plugin. at least, one would hope!

dave 2019-12-12T17:18:25.061200Z

i'm removing vim-clojure-static from my vimrc as an experiment. i'll report back if i notice any issues

2019-12-12T19:00:39.062600Z

I've noticed I use

Plug 'guns/vim-clojure-static', { 'branch': 'issue-77', 'for': 'clojure' }
but I forgot the reasons. Issue 77 is about performance.