How to build Vim
1. Build Step
git clone--depth1Https//github.com/vim/vim.git # Download the source codeCD vim/src MakeDistclean # Clean WorkspaceifYou build vim before./configure--enable-pythoninterp--enable-rubyinterp--enable-Python3interp--enable-perlinterp--enable-luainterp--with-compiledby--enable-tclinterp # can be ommitedif DoNot used these features Makesudo Make Install#InstallThe build bin to SystemfilePath
Note :
1) Before build can remove the old version of Vim
sudo apt-get remove Vim-common vim-gnome vim-runtime vim-tiny vim-gtk
2) Install build Vim required dependency (unconfirmed not installed Yes Yes)
sudo apt-get build-dep vim (if there is a dependency problem with aptitude to solve)
2. How to confirm build success:
1) Open vim, the interface displays version 7.4.2161 (the latest version number)
2) Vim--version detection version number and compile time
Vim-vi Improved 7.4 (compiled 6 2016 16:04:21)
...
3): Version also detects the revision number and compile time
7.4. 1529 7.4. 2161 7.4. 1655 (Macvim)
3. Some impressions
Very happy, has been troubled by my gvim choice when the last character dropped the bug finally did not exist, and, I finally learned
How will the source build vim, which means I can always ensure that my vim is the latest version, once there is any
Bug fix, I can update my vim! in time
Refer to:
1. The most important reference: the Vim repository at GitHub
2. Delete old version and Python support: compiling Vim with Python and Ruby supports on Ubuntu
From source build vim