-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_vim.sh
More file actions
executable file
·54 lines (48 loc) · 1.92 KB
/
install_vim.sh
File metadata and controls
executable file
·54 lines (48 loc) · 1.92 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
#!/bin/bash
################################################################################
# NOTE:
# Ubuntu 18.04.1 LTS has built-in vim 8.0.1453.
# Ubuntu 16.05.1 LTS has built-in vim 7.x.xxxx.
################################################################################
sudo apt install -y curl vim
################################################################################
# Install vim from source code
################################################################################
# Python is install by pyenv (Python version manager)
# ./configure --prefix=/usr/local/vim \
# --enable-python3interp=yes \
# --with-python3-command=~/.pyenv/versions/3.6.5/bin/python3.6
#
# make && sudo make install
source ./config.sh
################################################################################
# Install YouCompleteMe plugin for vim
################################################################################
# more detail: https://github.com/Valloric/YouCompleteMe#linux-64-bit
# YCM_HOME="$MY_HOME/.vim/bundle/YouCompleteMe"
# if [ ! -d "$YCM_HOME" ]; then
# cd "$YCM_HOME"
#
# sudo apt install -y build-essential cmake python3-dev
# sudo git submodule update --init --recursive
#
# # Fetch all submodules
# # sudo git pull --recurse-submodule
# # sudo git submodule update --remote --recursive
#
# # Compile YouCompleteMe for c++ programming in vim
# sudo python3 install.py --clang-completer
#
# cd "$MY_HOME"
# fi
################################################################################
# Install ctags plugin for vim
################################################################################
CTAGS="/usr/local/ctags/bin/ctags"
if [ ! -f "$CTAGS" ]; then
cd "$MY_DOWNLOADS"
git clone https://github.com/universal-ctags/ctags.git && \
cd "ctags" && ./autogen.sh && \
./configure --prefix=/usr/local/ctags && make && sudo make install && \
cd /usr/bin && sudo ln -s "$CTAGS" "ctags"
fi