Vim与GHCi集成 [英] Vim integration with GHCi

查看:83
本文介绍了Vim与GHCi集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将Vim用作Haskell IDE,尽管我不是Vim的核心用户,但我喜欢基于模式的编辑方式.

I'm trying to use Vim as a Haskell IDE, and, though I'm not a hardcore Vim user, I enjoy the mode-based way of editing.

在Emacs时期之后,我唯一想念的就是与GHCi集成.在后一个编辑器中,您只需键入C-c C-l(所有REPL环境都使用相同的快捷方式)来重新加载当前源文件并切换到包含解释器的拆分窗口.对于快速原型,TDD等而言,这种可能性是必不可少的.我确信我已经做了大量的工作,试图在Vim中获得相同的功能,但是没有取得明显的成果.

The only thing I'm missing after my Emacs period is integration with GHCi. In the latter editor you can just type C-c C-l (the same shortcut for all kinds of REPL environments) to reload the current source file and switch to the split window with the interpreter in it. That possibility is indispensable for rapid prototyping, TDD and so on. I'm sure that I've done considerable work in attempts to get the same feature in Vim, but with no significant result.

如果已经有人处理过此类任务,请提供解决方案的链接或提示.

If anyone has already dealt with such a task, please provide a link or a hint to the solution.

推荐答案

有一个脚本可以完全满足我的需求,它称为

There is a script that does exactly what I want, it's called SHIM. Good luck, guys!

这篇关于Vim与GHCi集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆