vimenv is like rbenv to vim.
$ git clone https://github.com/longicorn/vimenv.git ~/.vimenv
export PATH=~/.vimenv/bin:$PATH
export PATH=~/.vimenv/libexec/bin:$PATH
$ vimenv init
update source code
$ vimenv update
$ vimenv list
vim
# Linux
$ vimenv install vim v8.0.0046 --with-features=huge --enable-cscope --enable-fontset
# Mac
$ CC=gcc-4.9 vimenv install vim v8.0.0046 --with-features=huge --enable-cscope --enable-fontset
neovim
# Linux & Mac
$ vimenv install neovim v0.1.4
you can change the version of vim that you use.
use installed vim
$ vimenv global vim v8.0.0046
$ vimenv install neovim v0.1.4
use system vi
$ vimenv global vim system
$ vimenv global neovim system
vim
$ vimenv install vim HEAD
$ vimenv install vim <git hash id>
neovim
$ vimenv install neovim HEAD
$ vimenv install neovim <git hash id>
vim
$ cat default-vim
--with-features=huge --enable-cscope --enable-fontset
$ vimenv install vim v8.0.0046
Git requires version v2.7.0 or later.