memo.xight.org

日々のメモ

カテゴリ : homebrew

1ページ目 / 全1ページ

neocomplecache から neocomplete へのマイグレーション

Summary

NeoBundleUpdate したら vim 起動時にメッセージが出るようになった。

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

homebrew で "if_lua" enabled Vim を インストール

% brew info vim
vim: stable 7.4.052, HEAD
http://www.vim.org/
/usr/local/Cellar/vim/7.4 (1558 files, 27M)
  Built from source
/usr/local/Cellar/vim/7.4.027 (1558 files, 27M) *
  Built from source
From: https://github.com/mxcl/homebrew/commits/master/Library/Formula/vim.rb
==> Dependencies
Optional: lua
==> Options
--disable-nls
        Build vim without National Language Support (translated messages, keymaps)
--override-system-vi
        Override system vi
--with-lua
        Build vim with lua support
--with-mzscheme
        Build vim with mzscheme support
--with-perl
        Build vim with perl support
--with-tcl
        Build vim with tcl support
--without-python
        Build vim without python support
--without-ruby
        Build vim without ruby support

% brew install --with-lua vim
Error: vim-7.4.027 already installed
To install this version, first `brew unlink vim'

% brew unlink vim
Unlinking /usr/local/Cellar/vim/7.4.027... 144 links removed

% brew install --with-lua vim

vimrc

neocompcache を neocomplete に置換
neocomplete migration guide を参考に

:%s/g:neocomplcache_/g:neocomplete#
:%s/neocomplcache#/neocomplete#

Reference

GitHub - neocomplete migration guide - Shougo/neocomplete.vim Wiki
https://github.com/Shougo/neocomplete.vim/wiki/neocomplete-migration-guide