LoginSignup
45
49

More than 5 years have passed since last update.

HomebrewでVimをインストール

Last updated at Posted at 2014-08-17

neocomplete入れて、Vim立ち上げようとしたら、
これが出てきたので、バージョンアップを。

neocomplete does not work this version of Vim.
It requires "if_lua" enabled Vim(7.3.885 or above).

homebrewでインストール

$ brew install lua
$ brew install vim --with-lua

もし以下のエラーが出てきた場合は、

Warning: vim-7.4.335 already installed

これで。

$ brew reinstall vim --with-lua

PATHを変える

今入れたVimは/usr/local/bin/vimに入っていて
PATHを変えないと使えないようなので…
まずは何処のを読んでいるのか確認。

$ which vim
/usr/bin/vim

~/.bashrcに以下を追加

export PATH=/usr/local/bin:/usr/bin

ターミナルで設定を読み込む。

$ source ~/.bashrc
$ which vim
/usr/local/bin/vim

これで使えるようになりました。

参考

homebrewで最新のvim7.4をインストールする方法

45
49
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
45
49