Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save erickpatrick/5e0923d3645eaf4056b6b9fee4c91e2f to your computer and use it in GitHub Desktop.

Select an option

Save erickpatrick/5e0923d3645eaf4056b6b9fee4c91e2f to your computer and use it in GitHub Desktop.

Revisions

  1. erickpatrick revised this gist Aug 6, 2018. No changes.
  2. erickpatrick revised this gist Aug 6, 2018. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions install-vim-8-with-python-ruby-lua-ubuntu.sh
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@ sudo apt-add-repository ppa:brightbox/ruby-ng
    sudo apt-get update

    # installs everything needed to make/configure/build Vim
    sudo apt-get -y install liblua5.1-dev luajit libluajit-5.1 python-dev python3-dev ruby-dev ruby2.4 ruby2.4-dev libperl-dev libncurses5-dev libatk1.0-dev libx11-dev libxpm-dev libxt-dev
    sudo apt-get -y install liblua5.1-dev luajit libluajit-5.1 python-dev python3-dev ruby-dev ruby2.5 ruby2.5-dev libperl-dev libncurses5-dev libatk1.0-dev libx11-dev libxpm-dev libxt-dev

    #Optional: so vim can be uninstalled again via `dpkg -r vim`
    sudo apt-get -y install checkinstall
    @@ -34,9 +34,9 @@ cd ..
    --enable-rubyinterp=dynamic \
    --with-ruby-command=/usr/bin/ruby \
    --enable-pythoninterp=dynamic \
    --with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu \
    --with-python-config-dir=/usr/bin/python \ # or path to python3
    --enable-python3interp \
    --with-python3-config-dir=/usr/lib/python3.4/config-3.4m-x86_64-linux-gnu/ \
    --with-python3-config-dir=/usr/bin/python3 \ # or path to python3
    --enable-luainterp \
    --with-luajit \
    --enable-cscope \
    @@ -46,12 +46,12 @@ cd ..
    --enable-fontset \
    --enable-largefile \
    --disable-netbeans \
    --with-compiledby="YOUR NAME" \
    --with-compiledby="ERICK ROCHA <[email protected]>" \
    --enable-fail-if-missing

    # this this is the compilation step. It should also create the symlink of the binary
    # one /usr/bin folder
    make && sudo make install

    # To be able to access the new vim instaltion we need to refresh bash/zsh/fish
    exec bash
    exec bash # or exec zsh or exec fish
  3. erickpatrick revised this gist Jun 16, 2017. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions install-vim-8-with-python-ruby-lua-ubuntu.sh
    Original file line number Diff line number Diff line change
    @@ -6,6 +6,7 @@ sudo rm -rf /usr/local/share/vim /usr/bin/vim

    # add ppa for newest version of ruby (currently, as of 06/06/2017, ruby v2.4)
    sudo apt-add-repository ppa:brightbox/ruby-ng
    sudo apt-get update

    # installs everything needed to make/configure/build Vim
    sudo apt-get -y install liblua5.1-dev luajit libluajit-5.1 python-dev python3-dev ruby-dev ruby2.4 ruby2.4-dev libperl-dev libncurses5-dev libatk1.0-dev libx11-dev libxpm-dev libxt-dev
  4. erickpatrick renamed this gist Jun 9, 2017. 1 changed file with 0 additions and 0 deletions.
  5. erickpatrick revised this gist Jun 6, 2017. 2 changed files with 56 additions and 41 deletions.
    56 changes: 56 additions & 0 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,56 @@
    # remove current vim
    sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-gui-common

    # removes current link for vim
    sudo rm -rf /usr/local/share/vim /usr/bin/vim

    # add ppa for newest version of ruby (currently, as of 06/06/2017, ruby v2.4)
    sudo apt-add-repository ppa:brightbox/ruby-ng

    # installs everything needed to make/configure/build Vim
    sudo apt-get -y install liblua5.1-dev luajit libluajit-5.1 python-dev python3-dev ruby-dev ruby2.4 ruby2.4-dev libperl-dev libncurses5-dev libatk1.0-dev libx11-dev libxpm-dev libxt-dev

    #Optional: so vim can be uninstalled again via `dpkg -r vim`
    sudo apt-get -y install checkinstall

    # clones vim repository so we can build it from scratch
    cd ~
    git clone https://github.com/vim/vim
    cd vim
    git pull && git fetch

    # In case Vim was already installed. This can throw an error if not installed,
    # it's the nromal behaviour. That's no need to worry about it
    cd src
    make distclean
    cd ..

    # update to use the correct python 2.7/3.x config path also change 'YOUR NAME' to
    # your real name
    ./configure \
    --enable-multibyte \
    --enable-perlinterp=dynamic \
    --enable-rubyinterp=dynamic \
    --with-ruby-command=/usr/bin/ruby \
    --enable-pythoninterp=dynamic \
    --with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu \
    --enable-python3interp \
    --with-python3-config-dir=/usr/lib/python3.4/config-3.4m-x86_64-linux-gnu/ \
    --enable-luainterp \
    --with-luajit \
    --enable-cscope \
    --enable-gui=auto \
    --with-features=huge \
    --with-x \
    --enable-fontset \
    --enable-largefile \
    --disable-netbeans \
    --with-compiledby="YOUR NAME" \
    --enable-fail-if-missing

    # this this is the compilation step. It should also create the symlink of the binary
    # one /usr/bin folder
    make && sudo make install

    # To be able to access the new vim instaltion we need to refresh bash/zsh/fish
    exec bash
    41 changes: 0 additions & 41 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,41 +0,0 @@
    sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-gui-common

    sudo apt-get install liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev libncurses5-dev libatk1.0-dev libx11-dev libxpm-dev libxt-dev

    #Optional: so vim can be uninstalled again via `dpkg -r vim`
    sudo apt-get install checkinstall

    sudo rm -rf /usr/local/share/vim /usr/bin/vim

    cd ~
    git clone https://github.com/vim/vim
    cd vim
    git pull && git fetch

    #In case Vim was already installed
    cd src
    make distclean
    cd ..

    ./configure \
    --enable-multibyte \
    --enable-perlinterp=dynamic \
    --enable-rubyinterp=dynamic \
    --with-ruby-command=/usr/local/bin/ruby \
    --enable-pythoninterp=dynamic \
    --with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu \
    --enable-python3interp \
    --with-python3-config-dir=/usr/lib/python3.5/config-3.5m-x86_64-linux-gnu \
    --enable-luainterp \
    --with-luajit \
    --enable-cscope \
    --enable-gui=auto \
    --with-features=huge \
    --with-x \
    --enable-fontset \
    --enable-largefile \
    --disable-netbeans \
    --with-compiledby="yourname" \
    --enable-fail-if-missing

    make && sudo make install
  6. letmecode revised this gist Jan 18, 2017. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -15,6 +15,7 @@ git pull && git fetch
    #In case Vim was already installed
    cd src
    make distclean
    cd ..

    ./configure \
    --enable-multibyte \
  7. letmecode revised this gist Jan 18, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -34,7 +34,7 @@ make distclean
    --enable-fontset \
    --enable-largefile \
    --disable-netbeans \
    --with-compiledby="letmecode" \
    --with-compiledby="yourname" \
    --enable-fail-if-missing

    make && sudo make install
  8. letmecode revised this gist Jan 18, 2017. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,8 @@ sudo rm -rf /usr/local/share/vim /usr/bin/vim

    cd ~
    git clone https://github.com/vim/vim
    cd vim && git pull && git fetch
    cd vim
    git pull && git fetch

    #In case Vim was already installed
    cd src
  9. letmecode created this gist Jan 18, 2017.
    39 changes: 39 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,39 @@
    sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-gui-common

    sudo apt-get install liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev libncurses5-dev libatk1.0-dev libx11-dev libxpm-dev libxt-dev

    #Optional: so vim can be uninstalled again via `dpkg -r vim`
    sudo apt-get install checkinstall

    sudo rm -rf /usr/local/share/vim /usr/bin/vim

    cd ~
    git clone https://github.com/vim/vim
    cd vim && git pull && git fetch

    #In case Vim was already installed
    cd src
    make distclean

    ./configure \
    --enable-multibyte \
    --enable-perlinterp=dynamic \
    --enable-rubyinterp=dynamic \
    --with-ruby-command=/usr/local/bin/ruby \
    --enable-pythoninterp=dynamic \
    --with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu \
    --enable-python3interp \
    --with-python3-config-dir=/usr/lib/python3.5/config-3.5m-x86_64-linux-gnu \
    --enable-luainterp \
    --with-luajit \
    --enable-cscope \
    --enable-gui=auto \
    --with-features=huge \
    --with-x \
    --enable-fontset \
    --enable-largefile \
    --disable-netbeans \
    --with-compiledby="letmecode" \
    --enable-fail-if-missing

    make && sudo make install