Mac 配置 vim

Mac 配置 vim

  1. 安装 vim 7.4python

    cd ~
     hg clone https://code.google.com/p/vim/
     cd vim
     ./configure --with-features=huge \
                 --enable-multibyte \
                 --enable-rubyinterp \
                 --enable-pythoninterp \
                 --with-python-config-dir=/usr/lib/python2.7/config \
                 --enable-perlinterp \
                 --enable-luainterp \
                 --enable-cscope --prefix=/usr
     make VIMRUNTIMEDIR=/usr/share/vim/vim74
     sudo make install

编译的过程当中,可能会遇到一些问题。所以须要咱们提早将将src目录下的os_unix.h中加上git

#include <AvailabilityMacros.h>
  1. 配置 vim

参考:个人 vim 配置github

可能遇到的问题:vim

ycm_client_support.[so|pyd|dll] and ycm_core.[so|pyd|dll] not detected; you need to compile YCM before using it.

须要到~/.vim/bundle/YouCompleteMe目录下,执行:ruby

./install.sh --clang-completer
  1. 这样应该就 ok 了,若是你的人品不是太差的话。期间缺什么东西,brew install 就行了。