VimL Script 语言:是否有其他语言的实现?
问题: Vim 我最喜欢的方面之一是它的灵活性。 我最不喜欢的语言之一是 VimL 脚本语言本身。 我知道每个人对语言和编辑器都有自己的偏好,所以我想当然地认为并不是每个人都同意我的观点。
问题: 如果您是 Vim 用户,并且如果您对使用 VimL 扩展 vim 有类似的不满,您使用过哪些替代方案为了扩展 Vim 同时避免默认语言? 我正在寻找可能超出我已经尝试过的想法,包括但不限于:
- 重新编译 vim,并添加对 python、ruby 和 perl 的支持(很好,但当我运行时它没有帮助) vim 在别人的机器上没有添加该支持)
- 永远不要编写一行 VimL 脚本,而只需下载预先存在的附加组件(很好,当且仅当现有的东西完全符合您的要求时,如果您必须这样做,那就不太好进行更改并最终不得不查看更多 VimL 脚本)
免责声明:注意,这不是针对 VimL 脚本或任何人的偏好的猛烈攻击。 如果它对您很有用,那就太好了! 我只是问那些需要替代方案的人,以及找到一种方法来满足他们的需求。
更新:此问题已更新,请求提供特定工具的具体参考资料。 不需要讨论、辩论、投票或扩展讨论。 如果存在特定工具,请随时参考。
Problem: One of my favorite aspects of Vim is its flexibility. One of my least favorite is the VimL script language itself. I know everyone has his or her own preference for languages and editors, so I take it for granted that not everyone agrees with me.
Question: If you are a Vim user, and if you have had a similar disaffection for using VimL to extend vim, what alternatives have you used in order to extend Vim while avoiding the default language? I am looking for ideas that may help beyond what I've already tried, including, but not limited to:
- recompiling vim with the add-on support for python, ruby, and perl (nice, but it does not help when I am running vim on someone else's machine without that support added in)
- never writing a line of VimL script and simply download preexisting add-ons (great, if and only if the existing stuff does exactly what you want it to, not so great if you have to make a change and end up having to look at more VimL script)
Disclaimer: Note, this is not a slam against VimL script or anyone's preferences. If it works great for you, that's great! I'm just asking those who have found a need for an alternative, and a way to fulfill that need to their satisfaction.
Update: This question was updated with a request for specific references to specific tools. No discussion, debate, polling or extended discussion is needed. If there exists a specific tool, please feel free to reference it.
- see e.g., https://github.com/luke-gru/riml
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我喜欢
vim
但讨厌VimL
。 所以我一直在尝试使用emacs
和evil
插件。 这是一种类似于 vim 的模式,但具有 emacs 插件和 emacs-lisp 作为脚本语言的所有优点。 主要是胜利。 (它不是 100% 像 vim — 例如,$
不是像 vim 中那样的特殊行列 — 但足够接近。)I love
vim
but hateVimL
. So I have been tryingemacs
with theevil
plugin. It's avim
-like mode, but with all the benefits ofemacs
plugins andemacs-lisp
as a scripting language. Mostly a win. (It's not 100% like vim — for example,$
isn't a special line column like it is in vim — but close enough.)最有可能的是适合您的开发生态系统的任何内容。 即一种你可能在 vim 之外使用的语言,因为它有有用的支持库
我个人在这个 trac 插件中使用了 +python
http://www.vim.org/scripts/script.php?script_id=2147
在广泛使用和学习这个很棒的调试器脚本之后...
http://www.vim.org/scripts/script.php?script_id=1929
就其他机器上的工作而言,通常您只是在没有小工作所需的东西的情况下生活。 但如果需要的话,你总是可以使用 netrw 进行 scp 等..
但实际上它是你想学习和可以使用的任何东西
Most likely whatever fits your development ecosystem. ie a language you're likely to use outside just vim itself as it has helpful support libraries
I personally used +python in this trac plugin
http://www.vim.org/scripts/script.php?script_id=2147
after extensively using and learning from this awesome debugger script...
http://www.vim.org/scripts/script.php?script_id=1929
As far as working on other machines usually you just live without stuff for small jobs. but you can always use netrw for scp etc if needed..
but really it's whatever you want to learn and can use
如果我们忽视你提到的那些,就没有其他选择。
我认为这涵盖了它。
There are no alternatives, if we disregard the ones you mentioned.
I think that covers it.