ben.knoble
2020-12-16 14:29:03

I use vim-sexp (custom fork), the sexp for humans thing from tpope, a custom form of vim-racket, and my simpl plugin (which recently got racket support).


samdphillips
2020-12-16 17:31:04

I use vim-racket and kitty, and run raco make -v (or raco setup -Dmv --pkgs my-project && raco test -p my-project if I have it in a package) a lot.


phanthero
2020-12-16 22:26:11

For vim, I have heard some people use lexima.vim instead of the guns/vim-sexp


phanthero
2020-12-16 22:26:27

I mostly use Emacs now though, so not sure what the benefits are for one plugin over another


phanthero
2020-12-16 22:27:13

BTW, for vim-sexp, I couldn’t get the Alt key mappings working


phanthero
2020-12-16 22:27:28

@ben.knoble Do you have a good solution for making the Alt (Meta) key work in Vim?


phanthero
2020-12-16 22:28:15

I have seen you around the vi stack exchange (you’re a moderator?) a lot so I have the preconceived notion you know everything about Vim lol.


ben.knoble
2020-12-16 22:35:48

I don’t use mappings with alt keys :) theoretically it works in gvim or in terminal vim with some xterm modifyOtherKeys thing, but again, I don’t use them. For sexp, there’s tpope’s sexp mappings for humans which are far more “vim”


ben.knoble
2020-12-16 22:37:22

And yeah, I moderate on http://vi.stackexchange.com\|vi.stackexchange.com (I wish the http://vi.se\|vi.se shortlink worked everywhere), but I have a long way to go to learn everything! Mostly I like the :help and I try to avoid plugins that do too much or don’t fit in well with what I feel like vim is, very personal, lol


phanthero
2020-12-16 22:38:30

I see, yeah. The http://vi.se\|vi.se shortlink takes me to some non-English site unforunately


phanthero
2020-12-16 22:38:55

It is a bit of a waste that the Meta key doesn’t work in the terminal properly though


ben.knoble
2020-12-16 22:39:18

Yeah, on stackexchange sites stuff like [<http://vi.se\|vi.se>] gets a magic link in comments.


ben.knoble
2020-12-16 22:39:35

It can be made to ^^ but again I don’t tend to use it


ben.knoble
2020-12-16 22:39:54

With Caps Lock as a Ctrl key and Space as my leader, I use those more often


phanthero
2020-12-16 22:40:35

Yep, I have the same mappings (except I still have Caps Lock mapped to Escape instead of Ctrl)


phanthero
2020-12-16 22:40:54

Have you tried out Emacs? Emacs has an incredibly good vi emulation layer called evil


phanthero
2020-12-16 22:41:12

It is light years ahead of similar vim emulation layers on VSCode, for example


phanthero
2020-12-16 22:41:34

I don’t use Emacs without evil


ben.knoble
2020-12-16 22:43:59

Ive heard about it so many times. Ive also heard you have to spend a fair amount of time making plugins work with it? And I’m not quite ready to port my very large vim config to emacs


phanthero
2020-12-16 22:45:57

Well, I think I would just start with the basics first. Obviously it will take some time to get comfortable and have a suitable setup. It is certainly worth a try I would say. Things like vim-sexp exist because of Emac’s paredit mode


phanthero
2020-12-16 22:46:18

paredit mode is so powerful when dealing with lisps, it’s difficult to describe


phanthero
2020-12-16 22:46:43

Anyway, yeah, I don’t believe in the whole editor war thing, but if you want to work with Lisps, I would definitely give Emacs a try


averellaquino
2020-12-17 02:23:25

Btw, the Alt key works in Neovim.


averellaquino
2020-12-17 02:29:19

@ben.knoble do you use #lang? how do you load it in your repl?


averellaquino
2020-12-17 02:31:44

@samdphillips that does not fully leverage a repl driven development does it?


ben.knoble
2020-12-17 02:51:19

Simpl supports the racket filetype; you would need to write support for other filetypes (vim-racket purports to support setting filetype based on #langs, but so far my fork does a bit better). It’s not hard to add extra support, though. Tbh my fork is a work in progress, and I’m not writing enough racket to make all the changes I need to make rn (ie they arent a priority).


ben.knoble
2020-12-17 02:51:59

I presume one could use racket -l ... -i or whatever the right command is for other langs


samdphillips
2020-12-17 03:11:57

REPL driven development is kinda overrated tbh


samdphillips
2020-12-17 03:30:54

(for me at least)


phanthero
2020-12-17 04:11:05

REPLs are only really useful when you want to try out a small example


phanthero
2020-12-17 04:11:08

But yeah


samdphillips
2020-12-17 06:59:58

I do think some users have a workflow that allows copy-and-paste of code between REPL and editor and that works as a kind of REPL driven development, but that has never really worked for me.