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

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:

主站蜘蛛池模板: 嫩江县| 元朗区| 南汇区| 遵义县| 锦屏县| 常熟市| 潼关县| 进贤县| 河间市| 平罗县| 赣州市| 宁河县| 库伦旗| 大冶市| 绥江县| 台湾省| 津南区| 汉沽区| 化德县| 抚远县| 巴彦县| 鄂托克前旗| 海晏县| 丹东市| 南皮县| 永昌县| 高雄县| 芒康县| 大城县| 若尔盖县| 周至县| 读书| 东丽区| 仁化县| 华安县| 台山市| 象山县| 家居| 澳门| 莆田市| 浮梁县|