为什么没有更多的人使用带有 viper 模式的 emacs?

发布于 2024-09-19 18:48:59 字数 253 浏览 6 评论 0原文

我开始使用 emacs,我发现虽然 emacs 的编辑器特定功能比 vi 更好,但 vi 的文本操作方法比 emacs 更好(并且更容易控制-小指!)。

看来 viper 模式结合了每个编辑器的两个最佳部分,对于想要完整编辑器的人来说是理想的解决方案。

但在我开始花时间学习 emacs 环境中的 vi 命令之前,我想知道为什么似乎没有多少人使用 viper 模式。 使用一段时间后我会发现一些东西会导致我切换到普通的 emacs 或 vi 吗?

I've started to use emacs, and I've found out that while the editor-specific features of emacs are better than those of vi, the text-manipulation methods of vi are better than those of emacs (and easier on your control-pinky!).

It seems that viper-mode, a marriage of the two best parts of each editor, is the ideal solution for someone that wants a complete editor.

But before I start investing my time learning the vi commands in the emacs environment, I'd like to know why it doesn't seem like many people use viper-mode. Is there something I'll find out after using it a while that will cause me to switch to plain emacs or vi?

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

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

发布评论

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

评论(4

浅语花开 2024-09-26 18:48:59

因为您要么是 vi 人,要么是 emacs 人。就像你要么是狗人,要么是猫人一样。

更严肃地说,我为什么要改变? vi 为我提供了我需要的所有功能,并且我非常确定 emacs 人们也会对他们选择的编辑器有同样的感觉。

我已经使用 vi 二十多年了,它的一些功能仍然令我惊讶(诚然,它通常是 vim 而不是 vi如今)。我不想将我生命中的接下来的二十年都花在熟练使用emacs上。没有任何好处,而且成本很高,而且我几乎所有的非次要决定都要经过成本/效益分析。

大多数情况下,这取决于您感到舒服的程度。我花了几年才停止尝试使用 WordStar 3.3 CTRL-K CTRL-X 按键序列退出大多数编辑器。它已经把自己烧进了我的脊髓,所以大脑所要做的就是发出退出命令,最低层的神经系统就会接管。

而且,无论如何,emacs 及其奇怪的命令序列,例如

CTRL META LEFTSHIFT RIGHTSHIFT WINDOWS OPENAPPLE ALT K

更适合有 87 个手指的外星人或精英钢琴家:-)

Because you are either a vi person or an emacs person. The same way you're either a dog person or a cat person.

On a more serious note, why would I change? vi offers me all the power I need and I'm pretty certain the emacs people would feel the same way about their editor of choice.

I've used vi for over twenty years and some of its features still surprise me (admittedly, it's usually vim rather than vi nowadays). I don't want to dedicate the next twenty years of my life at becoming adept with emacs. There's no benefit and plenty of cost, and pretty much all of my non-minor decisions are subject to cost/benefit analyses.

Mostly, it comes down to what you're comfortable with. It took years for me to stop trying to use the WordStar 3.3 CTRL-K CTRL-X key sequence to exit from most editors. It had burnt itself into my spinal cord so that all the brain had to do was issue an exit command and the lowest levels of the nervous system would take over.

And, anyway, emacs with its strange command sequence like

CTRL META LEFTSHIFT RIGHTSHIFT WINDOWS OPENAPPLE ALT K

is better suited to aliens with 87 fingers, or elite pianists :-)

沧桑㈠ 2024-09-26 18:48:59

想要像 vi 一样使用的人使用 vi,想要像 Emacs 一样使用的人使用 Emacs。

我认为有些 vi 人员转向 Emacs 以获得诸如 org-mode 之类的功能(或其他一些“杀手级”功能, vi 中不存在)。这些人可能会使用 viper-mode 来简化过渡。

关于“我能找到什么东西吗……”这个实际问题——每个人都有所不同。也许 viper 缺乏 Co 命令(执行一个命令并返回到插入模式(或类似的东西))实在是太痛苦了。或者,也许您会发现不必在命令模式和插入模式之间切换的吸引力很有吸引力,因此直接选择 Emacs。

我认为 viper-mode 或 vimpulse 的好处在于,它使得 vi 用户 95% 要做的事情的学习曲线可以忽略不计。但是您可以使用 Vim 中无法使用的 Emacs 的其他部分(无论您认为这些功能有吸引力)。

People who want vi-like usage use vi, people who want Emacs-like usage use Emacs.

I think you get some vi people moving to Emacs to get functionality like org-mode (or some other "killer" functionality that doesn't exist in vi). And those people probably use viper-mode to ease the transition.

Regarding the actual question of "is there something I'll find out..." - everybody is different. Maybe viper's lack of C-o command (do one command and go back to insert mode (or something like that)) is just too painful to not have. Or, maybe you'll find that the allure of not having to switch between command and insert modes is attractive and go for straight Emacs.

I think the benefit of viper-mode or vimpulse is that it makes the learning curve for vi-users is negligible for 95% of what you'll do. But you have the possibility of using the other parts of Emacs that you can't get in vim (whatever those things are that you find attractive).

流星番茄 2024-09-26 18:48:59

我“了解”了 vim,这是一项巨大的投资。我得到了 vimscript,这是另一项巨大的投资。我不想学习另一个编辑器极其复杂的内部结构和 emacs-lisp 的复杂性,特别是因为我唯一真正想要但在这里无法获得的是更好的 repl 支持。

此外,viper 还远远不够。 vimperator 很接近,但没有什么比 vim 更好。

I "get" vim, that is a massive investment. I get vimscript, that is another massive investment. I have no desire to learn the wildly complex internals of another editor and the intricacies of emacs-lisp, especially since the only thing I would really want there that I can't have here is better repl support.

Also, viper is nowhere near enough. vimperator comes close, but nothing beats vim.

悸初 2024-09-26 18:48:59

因为我不想要 vi,我想要带语法高亮的 vim。

Because I don't want vi, I want vim with syntax highlighting.

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