-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvim_with_lua_python_without_sudo
More file actions
executable file
·64 lines (53 loc) · 2.59 KB
/
vim_with_lua_python_without_sudo
File metadata and controls
executable file
·64 lines (53 loc) · 2.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Installing vim with lua and python support
Make sure following dependencies are already installed. For non root user these may be installed and need to be compiled.
For e.g. python 3 , lua . Use pyinstall_from_source_non_root in info for py3 install. Skip this step for ads
sudo apt-get install libncurses5-dev libgnome2-dev libgnomeui-dev \
libgtk2.0-dev libatk1.0-dev libbonoboui2-dev \
libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev \
python3-dev ruby-dev lua5.1 lua5.1-dev libperl-dev git
ads/nobackup/tsheoran/dev/vim_src$ git clone https://github.com/vim/vim.git
Cloning into 'vim'...
remote: Counting objects: 75392, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 75392 (delta 0), reused 1 (delta 0), pack-reused 75386
Receiving objects: 100% (75392/75392), 72.30 MiB | 9.93 MiB/s, done.
Resolving deltas: 100% (62834/62834), done.
ads/nobackup/tsheoran/dev/vim_src$ cd vim
ads/nobackup/tsheoran/dev/vim_src/vim$ git reset --hard 253f9128779f315ea670f9b4a17446b7b4c74927
HEAD is now at 253f912 patch 8.0.0597: off-by-one error in size computation
ads/nobackup/tsheoran/dev/vim_src/vim$ ./configure --with-features=huge \
> --enable-multibyte \
> --enable-rubyinterp=yes \
> --enable-pythoninterp=yes \
> --with-python-config-dir=/usr/lib/python2.7/config \
> --with-python3-config-dir=/usr/lib/python3.5/config \ "Use this line with correct path and remove this comment
> --enable-perlinterp=yes \
> --enable-luainterp=yes \
> --enable-gui=gtk2 \
> --enable-cscope \
> --prefix=/users/tsheoran/vimruntime/
ads/nobackup/tsheoran/dev/vim_src/vim$ make VIMRUNTIMEDIR=/users/tsheoran/vimruntime/
ads/nobackup/tsheoran/dev/vim_src/vim$ make install
ads~/vimruntime/share/vim/vim80$ cp -R * ~/vimruntime/
Add in path /users/tsheoran/vimruntime
-------
./configure --with-features=huge \
--enable-multibyte \
--enable-rubyinterp=yes \
--enable-pythoninterp=yes \
--with-python-config-dir=/usr/lib/python2.7/config \
--with-python3-config-dir=/usr/lib/python3.5/config \
--enable-perlinterp=yes \
--enable-luainterp=yes \
--enable-gui=gtk2 \
--enable-cscope \
--prefix=/users/tsheoran/vimruntime/
make VIMRUNTIMEDIR=/users/tsheoran/vimruntime/
------
To make youcomplete work
Open vim
:BundleInstall!
cd ~/.vim/bundle/YouCompleteMe
compile it follow you complete page
ads~/.vim/bundle/YouCompleteMe$ ./install.py --clang-completer
Now youcompleteme will work