vim

For discussion on all things (neo)vim.
practicalli-john 2020-11-01T16:50:23.123500Z

Well, the broadcast didnt go very well I am afriad. I got stuck with a vimproc issue when adding the lang#clojure layer to SpaceVim.

practicalli-john 2020-11-01T17:22:51.125400Z

I fixed the vimpro issue by running make in .SpaceVim/bundle/vimproc.vim/ I have the Clojure layer installed now (after misspelling layers). However, even though clojure binary is on the path, when I start an inferior repl, SPC l s i then Spacevim is unable to find cmd-clj 😞

Thomas Harned 2020-11-01T18:23:23.127100Z

@jr0cket I ran into both those issues myself with trying to use the clojure layer.

dominicm 2020-11-01T19:40:14.128Z

Seems like spacevim is just borked.

dominicm 2020-11-01T19:40:40.128700Z

I don't think it has the same popularity in vim as the emacs package it emulated.

2020-11-01T19:48:47.133800Z

The core is really nice and I like the idea… but for some reason I’ve stopped using it after a while and went back to my own setup. Don’t remember why anymore

Thomas Harned 2020-11-01T19:49:01.133900Z

I think you’re right. I tried it out and there seem to be a number of bugs. And googling the issues doesn’t usually return much so I think the user base is pretty small. I thought the layers feature would yield a cleaner shorter vimrc, but it’s just too buggy.

2020-11-01T19:50:57.135300Z

in other news: if someone here needs to use IntelliJ for any reason IdeaVim got a great new feature that lets you easily setup new shortcuts: https://github.com/JetBrains/ideavim/blob/master/CHANGES.md#to-be-released

IdeaVim: track action Ids command to find action ids for the :action command. Enable this option in "Search everywhere" (double shift).

dominicm 2020-11-01T19:59:30.137800Z

Tbh, vim works so differently from emacs that I don't think it solves the same problems

practicalli-john 2020-11-01T20:00:11.138700Z

@thomas.harned I have fixed Spacevim and it now runs a Clojure REPL. My vimscript is non-existant, so its probably a hack. It seems it was trying to run the command cmd-clj which apparently the command name when using a scoop install on Windows (I dont know if this is true, but that is what the existing comment suggests). Hacking the code to use clojure as the command worked. https://github.com/SpaceVim/SpaceVim/issues/3931#issuecomment-720140933 If anyone knows a little bit of vimscript, perhaps they can suggest a proper fix (as I think my fix breaks if running windows with scoop install of Clojure CLI tools.

dominicm 2020-11-01T20:02:55.140900Z

You could perhaps use executable('cmd-clj') to determine if that is executable

practicalli-john 2020-11-01T20:02:56.141100Z

Ideally I would like to take Spacevim and add Conjure to it as I like the features it provides for Clojure development. The Clojure layer seems quite limited in features compared to Conjure. I havent tried vim-iced yet.

dominicm 2020-11-01T20:04:08.141700Z

I dunno how spacevim handles competing alternative approaches like that.

dominicm 2020-11-01T20:04:21.142100Z

I guess the idea is to take away choices

practicalli-john 2020-11-01T20:05:42.143Z

https://github.com/SpaceVim/SpaceVim/blob/master/autoload/SpaceVim/layers/lang/clojure.vim#L39-L48 is a lot of code I dont really understand and seems to be what determines what is run. I've spent a while trying to figure it out, but didnt get anywhere. Hence the request for help.

2020-11-01T20:08:51.144200Z

I was considering contributing to SpaceVim at the time and wsdjeg was happy to accept help

practicalli-john 2020-11-01T20:11:52.144400Z

Contributing seems to require some understanding of vimscript, so I'm unlikely to be able to help much in actually contributing code to Spacevim. Working with conjure I havent hit the huge learning curve of vimscript, so will focus on that for now.