VimL Script 语言:是否有其他语言的实现?

发布于 2024-07-13 14:00:44 字数 822 浏览 11 评论 0原文

问题: 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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

扬花落满肩 2024-07-20 14:00:44

我喜欢 vim 但讨厌 VimL。 所以我一直在尝试使用 emacsevil 插件。 这是一种类似于 vim 的模式,但具有 emacs 插件和 emacs-lisp 作为脚本语言的所有优点。 主要是胜利。 (它不是 100% 像 vim — 例如,$ 不是像 vim 中那样的特殊行列 — 但足够接近。)

I love vim but hate VimL. So I have been trying emacs with the evil plugin. It's a vim-like mode, but with all the benefits of emacs plugins and emacs-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.)

烟雨扶苏 2024-07-20 14:00:44

最有可能的是适合您的开发生态系统的任何内容。 即一种你可能在 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

七婞 2024-07-20 14:00:44

如果我们忽视你提到的那些,就没有其他选择。

  • 在 Vim 中,您可以使用 VimL
  • 如果您希望使用 Python/Perl/Ruby 进行编程,您可以找到一个预制的二进制文件,或者构建 Vim 以包含对其的支持,然后使用其中之一,就像很多人
  • 一样下载插件,正如您所说,但越来越多的插件需要支持上述之一(通常在 *nix 盒子上找到,所以这实际上不是什么大问题)
  • 您可以使用上述之一,或者Vim 之外的其他 *nix 工具,但这与 Vim 不再有任何关系

我认为这涵盖了它。

There are no alternatives, if we disregard the ones you mentioned.

  • While in Vim you can use VimL
  • If you wish to program in Python/Perl/Ruby you can find yourself a pre-made binary, or build Vim to include support for it, and then use one of those, as many people do
  • you can download plugins, as you said, but more and more of them require support for one of the above (which are often found on *nix boxes, so it's really not that much of a problem)
  • you can use either one of the above, or other *nix tools outside Vim, but that has no longer anything to do with Vim

I think that covers it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文