aboutsummaryrefslogtreecommitdiffstats
path: root/vim/install.sh
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2021-05-14 18:14:50 +0000
committerterminaldweller <thabogre@gmail.com>2021-05-14 18:14:50 +0000
commit6e528248414e330c9e25e81596ab47b8b8a5b701 (patch)
treee1aa41a7f3198eeac187e6177ec7d4a33db229d3 /vim/install.sh
downloadscripts-master.tar.gz
scripts-master.zip
first commitmaster
Diffstat (limited to 'vim/install.sh')
-rwxr-xr-xvim/install.sh41
1 files changed, 41 insertions, 0 deletions
diff --git a/vim/install.sh b/vim/install.sh
new file mode 100755
index 0000000..5114105
--- /dev/null
+++ b/vim/install.sh
@@ -0,0 +1,41 @@
+#!/usr/bin/env sh
+
+VIM_VERSION=8.2.2536
+
+sudo apt remove --purge vim vim-runtime vim-gnome vim-tiny vim-gui-common
+sudo rm -rf /usr/local/share/vim /usr/bin/vim
+sudo apt-get install -y liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev libncurses5-dev libatk1.0-dev libx11-dev libxpm-dev libxt-dev
+
+mkdir -p ~/vimsrc && \
+ cd ~/vimsrc && \
+ wget https://github.com/vim/vim/archive/v"$VIM_VERSION".tar.gz && \
+ tar -xvf v"$VIM_VERSION".tar.gz -C ~/vimsrc
+
+cd vim-"$VIM_VERSION" && ./configure \
+ --with-features=huge \
+ --enable-multibyte \
+ --enable-perlinterp=yes \
+ --enable-rubyinterp=yes \
+ --with-ruby-command=/usr/bin/ruby \
+ --enable-luainterp=yes \
+ --with-luajit \
+ --enable-python3interp=yes \
+ --with-python3-config-dir=/usr/lib/python3.8/config-3.8m-x86_64-linux-gnu \
+ --with-python3-command=python3 \
+ --enable-cscope \
+ --enable-gui=auto \
+ --with-features=huge \
+ --with-x \
+ --enable-fontset \
+ --enable-largefile \
+ --disable-netbeans \
+ --prefix=/usr/local \
+ --enable-terminal \
+ --with-compiledby="farzadsadeghi <thabogre@gmail.com>" \
+ --enable-fail-if-missing
+# --enable-pythoninterp=yes \
+# --with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu \
+
+make -j4 && sudo make install
+# run :helptags path-to-where-the-docs-are
+sudo vim -c "helptags $VIMRUNRIME"