To use the VIM command, the system comes with VI, but no vim
to the corresponding version of Vim on the official website, this is the 7.3 version I chose.
ftp://ftp.vim.org/pub/vim/unix/
After decompression, will generate a Vim73 folder, different versions may be different numbers
./configure error, prompt as follows:
No terminal library foundchecking for tgetent () ... Configure:error:NOT found! You need to install a terminal library; For example ncurses. Or Specify the name of the library With–with-tlib
Workaround, install Ncurses-dev and refer to the following posts:
Http://askubuntu.com/questions/158344/no-terminal-library-found-when-compiling-vim
In https://rpmfind.net/linux/rpm2html/search.php?query=ncurses-dev&submit=search+...&system=centos& arch= Download Ncurses-dev
Then RPM-IVH installation
Okay, after that, Vim starts./configture Make made install trio
Over
This article is from the "101010...010101" blog, make sure to keep this source http://legendland.blog.51cto.com/2043145/1910796
CentOS 7 installed VIM problems and workarounds