File tree Expand file tree Collapse file tree 4 files changed +25
-20
lines changed Expand file tree Collapse file tree 4 files changed +25
-20
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ function init {
2727}
2828
2929function rebuild() {
30- cd ~ /.vim/plugged/YouCompleteMe && git submodule update --init --recursive && ./ install.py " $@ "
30+ cd ~ /.vim/plugged/YouCompleteMe && git submodule update --init --recursive && python3 install.py " $@ "
3131}
3232
3333function usage {
Original file line number Diff line number Diff line change @@ -5,14 +5,16 @@ yum install -y gcc gcc-c++ kernel-devel cmake golang
55
66sudo yum -y remove vim
77
8- cd ~ && rm -rf vim && git clone git@ github.com: vim/vim.git && cd vim
8+ cd ~ && rm -rf vim && git clone https:// github.com/ vim/vim.git && cd vim
99./configure --with-features=huge \
10- --enable-multibyte \
11- --enable-pythoninterp \
12- # --with-python-config-dir=/usr/lib/python2.7/config \
13- --enable-python3interp \
14- # --with-python3-config-dir=/usr/lib/python3.4/config \
15- --with-mac-arch=x86_64 \
16- --enable-gui=gtk2 --enable-cscope --prefix=/usr
17- make VIMRUNTIMEDIR=/usr/local/share/vim/vim80
10+ --enable-multibyte \
11+ --enable-rubyinterp=yes \
12+ --enable-pythoninterp=yes \
13+ --enable-python3interp=yes \
14+ --enable-perlinterp=yes \
15+ --enable-luainterp=yes \
16+ --enable-gui=gtk2 \
17+ --enable-cscope \
18+ --prefix=/usr/local
19+ make VIMRUNTIMEDIR=/usr/local/share/vim/vim81
1820sudo make install
Original file line number Diff line number Diff line change @@ -22,12 +22,14 @@ sudo apt-get remove -y vim vim-runtime gvim
2222echoo " >>> Install vim ..."
2323cd ~ && rm -rf vim && git clone https://github.com/vim/vim.git && cd vim
2424./configure --with-features=huge \
25- --enable-multibyte \
26- --enable-pythoninterp \
27- # --with-python-config-dir=/usr/lib/python2.7/config \
28- --enable-python3interp \
29- # --with-python3-config-dir=/usr/lib/python3.4/config \
30- --with-mac-arch=x86_64 \
31- --enable-gui=gtk2 --enable-cscope --prefix=/usr
32- make VIMRUNTIMEDIR=/usr/local/share/vim/vim80
25+ --enable-multibyte \
26+ --enable-rubyinterp=yes \
27+ --enable-pythoninterp=yes \
28+ --enable-python3interp=yes \
29+ --enable-perlinterp=yes \
30+ --enable-luainterp=yes \
31+ --enable-gui=gtk2 \
32+ --enable-cscope \
33+ --prefix=/usr/local
34+ make VIMRUNTIMEDIR=/usr/local/share/vim/vim81
3335sudo make install
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ Plug 'hynek/vim-python-pep8-indent'
5454Plug ' elzr/vim-json'
5555Plug ' dyng/ctrlsf.vim'
5656Plug ' kylef/apiblueprint.vim'
57+ Plug ' leafgarland/typescript-vim'
5758
5859" A Git wrapper so awesome
5960Plug ' tpope/vim-fugitive'
@@ -128,7 +129,7 @@ let g:ycm_complete_in_strings = 1
128129let g: ycm_autoclose_preview_window_after_completion = 1
129130let g: ycm_autoclose_preview_window_after_insertion = 1
130131" let g:ycm_filetype_whitelist = { 'python': 1 }
131- let g: ycm_python_binary_path = ' python '
132+ let g: ycm_python_binary_path = ' python3 '
132133map <C-G> :YcmCompleter GoToDefinitionElseDeclaration<CR>
133134" fix .cpp error: ValueError: Still no compile flags, no completions yet.
134135let g: ycm_global_ycm_extra_conf = ' ~/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py'
@@ -153,7 +154,7 @@ au BufNewFile,BufRead *.go
153154\ set nolist
154155
155156" python with virtualenv support
156- py << EOF
157+ py3 << EOF
157158import os
158159import sys
159160if ' VIRTUAL_ENV' in os.environ :
You can’t perform that action at this time.
0 commit comments