Install vim7.3 (+ python2.4) from source (compatible with Gundo.vim)

Purpose

I want to use vim7.3. If you are using an application on the OS with MacVim or Gvim, there is no problem. Because I often work on a remote server There is no choice but to install the source and wrap it up. It is also a useful undo management plugin. To use Gundo.vim, with a Python 2.4 path Must be compiled. I couldn't find a way to do it on the internet Summarize the measures taken this time

Decide the installation directory.

In my environment, ~ / local / bin / vim is an alias for vi Install under ~ / local / src /. Of course, if you have a VPS or a dedicated server, there is no problem under / usr / local /. If you want to be under / usr / local /, replace ~ / local / with / usr / local / in a timely manner The alias is cut in .zshrc as shown below


$ vi .zshrc
--------------------------------

alias vi="$HOME/local/bin/vim"

--------------------------------

Check for the latest version of vim

Check the latest version and patch files on the Official Site. Source File Patch File Also check the patch number. * This time it is 780.

Install the required libraries.

Ignore if already installed Make sure Python is 2.4 or above. If not, please install from the source.


$ sudo yum install wget
$ sudo yum install ncurses-devel
$ sudo yum install patch
$ sudo yum install make
$ sudo yum install gcc
$ sudo yum install python
$ sudo yum install python-devel

After installation, check where the Python config directory is. In my environment, it was /usr/lib64/python2.6/config. This depends on the installation method and the server.

Get the source with wget and unzip it.

$ cd ~/local/src/
$ wget ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2
$ tar xjvf vim-7.3.tar.bz2

Apply the patch in the unzipped directory.


$ cd vim73
$ mkdir patches
$ cd patches
$ curl -O 'http://ftp.vim.org/pub/vim/patches/7.3/7.3.[001-780]'

*Wait for a while until the download is complete

$ cd ../
$ cat patches/* | patch -p0

Installation

Specify Python as a configure setting. Also, because the installation directory is under the user's ~ / local / bin / Specify a directory.


$ ./configure --with-features=huge --enable-pythoninterp --with-python-config-dir=/usr/lib64/python2.6/config --enable-fail-if-missing --prefix=/home/i3pinet/local --enable-multibyte --disable-selinux
$ make
$ make install

Confirm

Launch vi and verify that the version is 7.3. Also check if Gundo.vim is enabled. It is assumed that the plugin has been installed.


$ vi
->Version 7.Be 3

Check Gundo with vi


$ vi sample.txt

*I will write something appropriately.

:GundoToggle
->Gundo is displayed by quickfix

Plugins registered in vim will be summarized when you feel like it

Recommended Posts

Install vim7.3 (+ python2.4) from source (compatible with Gundo.vim)
Install Python from source with Ansible
Install python from source
Extract text from PowerPoint with Python! (Compatible with tables)
Install Apache 2.4.41 from source
Install Voluptuous with Python 2.5
Install python with pyenv
Install the latest Python from pyenv installed with homebrew
Install external libraries with Python
Install pyenv from Homebrew, install Python from pyenv
Format json with Vim (with python)
With skype, notify with skype from python!
Install Apache Maven (from source)
Call C from Python with DragonFFI
Install Python 2.7.9 and Python 3.4.x with pip.
Using Rstan from Python with PypeR
I can't install python3 with pyenv-vertualenv
Create folders from '01' to '12' with python
Run Aprili from Python with Orange
Call python from nim with Nimpy
Master the type with Python [Python 3.9 compatible]
Compile and install Git from source.
Read fbx from python with cinema4d
Build Vim with MinGW. (+ lua, + python)
Install python with mac vs code
[Python Windows] pip install with Python version
Collecting information from Twitter with Python (Twitter API)
Receive textual data from mysql with python
Get html from element with Python selenium
Play audio files from Python with interrupts
Create wordcloud from your tweet with python3
Install Python as a Framework with pyenv
Add a Python data source with Redash
install python
Tweet from python with Twitter Developer + Tweepy
Business efficiency starting from scratch with Python
Decrypt files encrypted with openssl from python with openssl
scipy stumbles with pip install on python 2.7.8
Image acquisition from camera with Python + OpenCV
[Python] Let's make matplotlib compatible with Japanese
Getting started with Dynamo from Python boto
Try calling Python from Ruby with thrift
Scraping from an authenticated site with python
Use C ++ functions from python with pybind11
Install PostgreSQL from source code on CentOS
How to install python3 with docker centos
Collecting information from Twitter with Python (Environment construction)
Install Windows 10 from a Linux server with PXE
Image processing from scratch with python (5) Fourier transform
[Ansible] Install dnf on Centos7 with Python3 interpreter
Install OpenCV 4.0 and Python 3.7 on Windows 10 with Anaconda
I wanted to install Python 3.4.3 with Homebrew + pyenv
Wrap C with Cython for use from Python
~ Tips for Python beginners from Pythonista with love ① ~
Make OpenCV3 available from python3 installed with pyenv
Image processing from scratch with python (4) Contour extraction
Generate an insert statement from CSV with Python.
Create a decision tree from 0 with Python (1. Overview)
Bulk download images from specific URLs with python
Install shogun with python modular (OS X Yosemite)
Little-known Python language specification (compatible with Python 3.4 or later)