官术网_书友最值得收藏!

  • Mastering Vim
  • Ruslan Osipov
  • 269字
  • 2021-06-10 18:51:22

Using Homebrew

Homebrew is a third-party package manager for MacOS which makes it easy to install and keep packages up to date. Instructions on how to install Homebrew are available on https://brew.sh, and, as of the moment of writing this book, consist of a single line executed in the following Command line:

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

The following screenshot shows the list of operations you will then see Homebrew perform during installation:

Hit Enter to continue.

If you don't have XCode installed (which is often a prerequisite for any kind of development-related activity on Mac), you'll get an XCode installation pop-up. We won't be using XCode directly, and you can install it with default settings.

This should take a while to run, but you'll have Homebrew installed by the end: a fantastic tool you can use to install a lot more than Vim! You'll see Installation successful! in bold font once the installation is complete.

Let's install a new version of Vim now using the following command:

$ brew install vim

Homebrew will install all the necessary dependencies too, so you won't have to worry about a thing, as can be seen in the following screenshot:

If you already have Homebrew installed, and you have installed Vim in the past, the preceding command will produce an error. You may want to make sure you have the last version of Vim, though, so run the following command:

$ brew upgrade vim

You should now be ready to enjoy Vim; let's try opening it with the following command:

$ vim

Welcome to Vim:

主站蜘蛛池模板: 遂宁市| 洛扎县| 巨鹿县| 绥德县| 浮山县| 麻城市| 大英县| 崇州市| 乐都县| 镇原县| 泽普县| 水城县| 贵德县| 临桂县| 白银市| 沁水县| 蓝田县| 津市市| 广宁县| 云梦县| 民县| 海盐县| 盘山县| 正定县| 沙坪坝区| 洪雅县| 简阳市| 池州市| 东平县| 昌邑市| 夏河县| 石门县| 房山区| 平乐县| 交城县| 合川市| 定远县| 唐山市| 施甸县| 当阳市| 深水埗区|