Skip to content

Instantly share code, notes, and snippets.

@crazyoptimist
Created April 25, 2021 23:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crazyoptimist/9343aa370d0195261f7d05d414ce2663 to your computer and use it in GitHub Desktop.
Save crazyoptimist/9343aa370d0195261f7d05d414ce2663 to your computer and use it in GitHub Desktop.
Install Vim From the Source on Fedora/CentOS

Installing Vim by building from the source needs bunch of dependancies.

Setup essential build environment

yum -y groupinstall "Development Tools"
yum -y install ncurses-devel git-core

Get the source

git clone https://github.com/vim/vim && cd vim

Pre-build configuration

Configure to provide a comprehensive vim; You can skip this step and go straight to make which will configure, compile and link with defaults.

./configure --prefix=/usr --with-features=huge --enable-multibyte --with-python-config-dir=/usr/lib/python2.7/config --enable-pythoninterp=yes

Build and install

make && sudo make install

After installation check your setup with

vim --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment