Fork me on GitHub
#vim
<
2020-05-22
>
tomgeorge03:05:33

in vim-iced, is there a way to change the behavior of the stdout buffer? It opens in a horizontal split and I would prefer if it opened in a vsplit

tomgeorge03:05:54

also, are there any plans to add a "send to repl" feature so that you can see the output in the repl process?

uochan04:05:54

> also, are there any plans to add a "send to repl" feature so that you can see the output in the repl process? Currently, there is no way. When you use clojure.tools.logging, you may see the log in your repl.

👍 4
noisesmith15:05:12

I've thought about making a vim plugin that would attach a "target" buffer to your current buffer, and send your region / selection / motion etc. to that buffer followed by a newline with a single keypress

✔️ 4
noisesmith15:05:35

just super generic (so it works when I'm dabbling with sql, guile, clojure...)

noisesmith15:05:39

maybe this weekend :D

noisesmith15:05:26

oh but that wouldn't help here, as that's a stdout buffer and not a repl buffer

dave15:05:58

would the target buffer be a terminal buffer? if so, that sounds a lot like https://github.com/kassio/neoterm

dave15:05:06

(assuming you use neovim)

dave15:05:34

oh hey, looks like that plugin might actually work for "legacy" vim too 🙂

dave15:05:51

(i immediately regret calling vim legacy vim. sorry if that offended anyone)

noisesmith15:05:29

I mean, given the amount of the vim source that is specifically for operating systems you can't even legally acquire any more...

👆 4
noisesmith15:05:24

@dave yeah that looks a lot like what I was thinking of... somehow in my searching I didn't find that lib

dave16:05:10

i use it sometimes. it's great!