如何在 OS X 上安装 MacVim? [英] How can I install MacVim on OS X?

查看:20
本文介绍了如何在 OS X 上安装 MacVim?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 OS X 10.9.1(小牛队).

I am using OS X 10.9.1 (Mavericks).

在 Mac OS 中安装到 Gvim 或 MacVim 的系统步骤是什么?如果您使用 1、2、3、... 编写步骤,则很容易遵循.

What are the systematic steps to install to Gvim or MacVim in Mac OS? If you write the steps using 1, 2, 3, ..., it would be easy to follow.

我必须承认,我未能理解 MacVim 页面上提供的所有说明.其他谷歌搜索的网页没有澄清.例如.

I must confess that I failed to understand all the instructions provided on MacVim page. Other google-searched webpages do not clarify. E.g.

什么是 $VIMRUNTIME ?我应该为我的操作系统安装什么版本的 vim?

What is $VIMRUNTIME ? What version of vim should I install for my OS?

现在不知何故我已经在我的系统中安装了 MacVim(我相信不是系统地).我可以看到我有一个文件夹 /Applications/gvim.app/MacVim.app/.

Now somehow I have installed MacVim in my system (Not systematically I believe). I can see that I have a folder /Applications/gvim.app/MacVim.app/.

现在,当我从 MacVim 打开一个文本文件时,它已经是用 vi 编辑器编写的,MacVim 无法识别它.此外,vi 无法识别 MacVim 中编写的任何内容!

Now when I open a text file from MacVim, which was already written using vi-editor, MacVim does not recognize it. Also vi does not recognize whatever is written in MacVim!

我该如何解决这个问题?

How can I resolve this?

推荐答案

  • 第 1 步:从这里安装自制软件:http://brew.sh
  • 步骤 1.1.运行 export PATH=/usr/local/bin:$PATH
  • 第 2 步:运行 brew update
  • 步骤 3. 运行 brew install vim &&brew install macvim
  • 步骤 4. 运行 brew link macvim
  • 您现在拥有由 brew 管理的最新版本的 vim 和 macvim.运行 brew update &&brew upgrade 每隔一段时间升级一次.

    You now have the latest versions of vim and macvim managed by brew. Run brew update && brew upgrade every once in a while to upgrade them.

    这包括安装 CLI mvim 和 mac 应用程序(两者都指向同一事物).

    This includes the installation of the CLI mvim and the mac application (which both point to the same thing).

    我使用这个设置,它的作用就像一个魅力.Brew 甚至负责使用首选选项安装 vim.

    I use this setup and it works like a charm. Brew even takes care of installing vim with the preferable options.

    这篇关于如何在 OS X 上安装 MacVim?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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