使用命令行Vim与GUI Vim的原因 [英] Reasons for using command line Vim versus GUI Vim

查看:70
本文介绍了使用命令行Vim与GUI Vim的原因的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

背景

我正在构建一个应用程序,它可以从文件系统中检测到您正在使用的文档.为此,它必须访问活动窗口的AXDocument属性. MacVim提供了此功能.在终端中运行Vim不会提供此功能.

I'm building an application where it detects what documents you're using from the file system. To do this it must access the AXDocument attribute of the active window. MacVim provides this. Running Vim in the Terminal wouldn't provide this.

我刚刚进行了一项调查,询问哪些人对我的应用使用感兴趣.大量使用Vim的人直接从命令行使用了它.

I've just put out a survey to ask what editor coders who are interested in my app use. A significant number of the folk using Vim used it directly from the command line.

为什么不使用GUI Vim?

为什么有些人更喜欢以这种方式运行Vim,而不是像MacVim这样的GUI实现?

Why do some people prefer to run Vim this way versus a GUI implementation like MacVim?

这有什么好处?据我了解,您可以像从Vim命令行一样轻松地从命令行将文件发送到MacVim.

What advantages does this offer? As I understand it, you can send files to MacVim from the command line just as easily as command line Vim.

推荐答案

对于每个特定的开发人员,这些原因可能有所不同,但我的猜测是:

These reasons may be different for each specific developer but my guess would be:

    在任何平台上,
  1. vim几乎都是vim. GUI实现可以 变化.
  2. 熟悉-熟悉vim并不一定意味着 熟悉vim包装的ina GUI-特别是#1.
  3. 精英情结";-)
  4. 对于用户而言,没有明确的优势.
  1. vim is pretty much vim on any platform. GUI implementations can vary.
  2. Familiarity - being familiar with vim does not nessecarily mean being familar with vim wrapped ina GUI - espectially given #1.
  3. "Elite Complex" ;-)
  4. No definite avantages to the users over cli vim.

这篇关于使用命令行Vim与GUI Vim的原因的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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