JimmyLiao

JimmyLiao blog: coffee, running, thinking

解決更新到 macOS Monterery 之後 VIM 9.0 出現 YouCompleteMe unavailable 的問題

2022-11-28 macOS VIM

久久沒打開 macbook,想說更新到 12.6.1 可以再度撐一陣子,沒想到打開 VIM 時出現

> vim
YouCompleteMe unavailable: requires Vim compiled with Python (2.7.1+ or 3.5.1+) support.
Press ENTER or type command to continue

先檢查一下 vim 安裝是否包括 python dependency

≻ vim --version | grep python
+cmdline_hist      -langmap           -python            +viminfo
+cmdline_info      +libcall           -python3           +virtualedit

果然沒有…參考網路參考先手動 alias (咦?!)

> alias python="python3"

> brew install vim
...(coffee break time: 30 mins?!)

收工!

Ref: https://clay-atlas.com/us/blog/2021/09/04/mac-os-en-install-vim-support-python3/

comments powered by Disqus