Step 1
>>> make install DESTDIR=~/.local
Step 2
make a symlink in ~/bin to ~/.local/bin/vim
Install vim 8
export PATH=/depot/qsc/QSCR/binutils/bin:$PATH
export PATH=/depot/qsc/QSCR/GCC/bin:$PATH
#export LD_LIBRARY_PATH=/depot/qsc/QSCR/GCC/lib64/:$LD_LIBRARY_PATH
/depot/qsc/QSCR/GCC/bin/gcc --version
gcc (GCC) 7.3.0
Step (with Python3 support)
git clone https://github.com/vim/vim.git
cd vim
make distclean
./configure --with-features=huge \
--enable-multibyte \
--enable-rubyinterp=yes \
--enable-python3interp=yes \
--with-python3-command=/depot/Python-3.6.2/bin/python \
--enable-perlinterp=yes \
--enable-luainterp=yes \
--enable-gui=gtk2 \
--enable-cscope \
--prefix=/u/ming/bin/vim8_2
make VIMRUNTIMEDIR=/u/ming/bin/vim8_2/share/vim/vim82 -j10
make install
https://vi.stackexchange.com/questions/17433/requires-vim-compiled-with-python-2-7-1-or-3-4-support
References
How to install VIM on Linux when I don't have root permissions?