Sending input to a screen window from vim

点点圈 提交于 2019-12-08 17:00:46

Jake McCrary's suggestion is a good one. There are also a couple other scripts available, probably based on same idea:

VimClojure, which says it does "repl in a vim buffer"

and

slimv, specifically supports Clojure

and

Gorilla, I think VimClojure, above, is based on Gorilla

I don't know whether VimClojure actually does what you want, sending result back from Screen to buffer in Vim. One way to do that, I think, would be to finagle something using Vim's client-server functionality, possible with the --remote-send flag. See:

:h client-server
:h --remote-send

I don't have an exact answer, but it might be worth taking a look at slime.vim and seeing if anything can be learned from it.

blog post about it

script at vim.org

Found what I was looking for. You can execute this from a terminal to send a string directly to the stdin of a screen window:

$ screen -X stuff "ls -l\015" # \015 sends a carrige return.

You might also be interested in Conque http://code.google.com/p/conque/

I use it for Scala

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!