简体   繁体   English

对于Emacs来说,作为Lisp的Vim是什么?

[英]What is to Vim as Lisps are to Emacs?

I have about 15 Emacs years behind me and picked up Vim about a year ago. 一年前,我有大约15年的Emacs年,并且拿起了Vim。 Currently I am more or less equally efficient in both (as far as editing is concerned) and love both. 目前,我或多或少同样有效率(就编辑而言)和两者都喜欢。 Now the lisp hacking experience in Emacs is something extraordinary; 现在,Emacs中的lisp黑客体验非同寻常; everything just meshes together. 一切都融合在一起。 What language (including its community etc.) would relate to Vim as lisps relate to Emacs? 什么语言(包括它的社区等)与Vim有关,因为lisps与Emacs有关?

While vimscript is indeed the primary extension language for vim recent versions support Ruby, Perl and Python extensions as well. 虽然vimscript确实是vim的主要扩展语言,但最近的版本也支持Ruby,Perl和Python扩展。

To answer the actual question - vim is immensely popular with Perl, Python, PHP and Ruby developers. 回答实际问题 - vim非常受Perl,Python,PHP和Ruby开发人员的欢迎。 I know quite of lot of those and next to none are using Emacs for various reasons. 我知道很多这些,并且由于各种原因,几乎没有人使用Emacs。 This is, of course, reflected in the supported extension languages I noted earlier. 当然,这反映在我前面提到的支持的扩展语言中。

Lisp is not Emacs's only stronghold IMHO - it has fantastic C/C++, Haskell, Perl, JavaScript, Scala, XML, etc. Ruby's own creator is using Emacs for both C and Ruby hacking. Lisp不是Emacs唯一的据点恕我直言 - 它拥有出色的C / C ++,Haskell,Perl,JavaScript,Scala,XML等.Ruby自己的创建者正在使用Emacs进行C和Ruby黑客攻击。 I personally use Emacs for everything :-) 我个人使用Emacs :-)

Vim has its own language, called vimscript. Vim有自己的语言,叫做vimscript。 Most plug-ins as well as some core features are written in vimscript. 大多数插件以及一些核心功能都是用vimscript编写的。

As bitmask said, Vim has its own extension language called Vimscript / VimL. 正如bitmask所说,Vim有自己的扩展语言Vimscript / VimL。 A lot of plugins are written in Vimscript, with Python jumping on that market as well, nowadays. 很多插件都是用Vimscript编写的,现在Python也在这个市场上跳跃。

Apart from that, Perl community has always been fond of Vi / Vim; 除此之外,Perl社区一直喜欢Vi / Vim; it fits their philosophy of "small quick to write programs". 它符合他们的“小写快节目”的理念。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM