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

查看:94
本文介绍了如何在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页面上提供的所有说明.其他由Google搜索的网页无法澄清. 例如.

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-editor编写,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!

我该如何解决?

推荐答案

  • 第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
    • Step 1. Install homebrew from here: http://brew.sh
    • Step 1.1. Run export PATH=/usr/local/bin:$PATH
    • Step 2. Run brew update
    • Step 3. Run brew install vim && brew install macvim
    • Step 4. Run 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天全站免登陆