Commit c33da88 nEk0
committed
1 parent 31f5904 commit c33da88 Copy full SHA for c33da88
File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -96,10 +96,12 @@ ln -s ${repo_path}/.tern-project ~/.tern-project
96
96
如果你顺利的完成了插件的下载,还有最后一项工作,编译YouCompleteMe:
97
97
98
98
``` shell
99
- cd ~ /.vim/bundle/YouCompleteMe && python ./install.py --clang-completer --js-completer --system-libclang && cd -
99
+ # 指定`--system-libclang`可以让YCM使用系统本地的clang版本,可以用来解决可能出现的下载clang过慢的问题。
100
+ # 但是我非常不建议这么做,可以用下面提到的另一种办法来解决这个问题
101
+ cd ~ /.vim/bundle/YouCompleteMe && python ./install.py --clang-completer --js-completer && cd -
100
102
```
101
103
102
- > 指定 ` --system-libclang ` 可以让YCM使用系统本地的clang版本,不指定的情况下安装脚本将会从clang官网下载最新的版本,在大陆地区这个速度会非常慢。预计在正式版本v1.0.0开始将不再建议用户使用该选项,因为这可能导致某些情况下c++补全失效。 如果下载太慢,可以自行在官网下载最新的包,然后拷贝至` ./bundle/YouCompleteMe/third_party/ycmd/clang_archives ` 目录下(不需要解压缩)
104
+ > 如果下载太慢,可以自行在官网下载最新的包,然后拷贝至` ./bundle/YouCompleteMe/third_party/ycmd/clang_archives ` 目录下(不需要解压缩)
103
105
104
106
注意,在执行` install.py ` 时,如果你的Vim之前显示的是` + Python ` (即拥有python2支持),请使用python2执行该文件,否则请使用python3.3以上的版本执行。
105
107
You can’t perform that action at this time.
0 commit comments