Skip to content

Commit 970ddef

Browse files
authored
Merge pull request #95 from TTWShell/feature/typescript-vim
add typescript-vim
2 parents 8badde7 + 321afde commit 970ddef

File tree

4 files changed

+25
-20
lines changed

4 files changed

+25
-20
lines changed

install-plugins.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function init {
2727
}
2828

2929
function 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

3333
function usage {

scripts/init-vim-centos.sh

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@ yum install -y gcc gcc-c++ kernel-devel cmake golang
55

66
sudo 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
1820
sudo make install

scripts/init-vim-ubuntu.sh

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@ sudo apt-get remove -y vim vim-runtime gvim
2222
echoo ">>> Install vim ..."
2323
cd ~ && 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
3335
sudo make install

vimrc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ Plug 'hynek/vim-python-pep8-indent'
5454
Plug 'elzr/vim-json'
5555
Plug 'dyng/ctrlsf.vim'
5656
Plug 'kylef/apiblueprint.vim'
57+
Plug 'leafgarland/typescript-vim'
5758

5859
" A Git wrapper so awesome
5960
Plug 'tpope/vim-fugitive'
@@ -128,7 +129,7 @@ let g:ycm_complete_in_strings = 1
128129
let g:ycm_autoclose_preview_window_after_completion = 1
129130
let 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'
132133
map <C-G> :YcmCompleter GoToDefinitionElseDeclaration<CR>
133134
" fix .cpp error: ValueError: Still no compile flags, no completions yet.
134135
let 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
157158
import os
158159
import sys
159160
if 'VIRTUAL_ENV' in os.environ:

0 commit comments

Comments
 (0)