Vim compilation and installation method 1. First download the vim73 installation package on the official website. Vim-7.3.tar.bz22. ssh or ftp via tools such as xmanager or putty to linux (I am using Redhat enterprise 5.0 myself ). 3. extract tar-jxvf vim-7.3.tar.bz2-j unzip command (*. -f specifies the unzipping file-z unzipping command (*. zip) for -- gzip, -- gunzip, -- ungzip4. run. /configure -- prefix =/soft-setup/vim -- enable-multibyte -- with-vim-name = vi -- with-features = huge -- disable-selinux -- prefix: customize the vim installation directory. -- Enable-multbyte: supports multiple encodings -- with-vim-name = vi: Which programs will call vim applications. We set it to vi -- with-features = huge: sets the maximum usage feature. -- Disable-selinux: Don't check for SELinux support does not require SELinux support for verification. 5. use. /configure -- prefix =/soft-setup/vim -- enable-multibyte -- with-vim-name = vi -- with-features = huge -- disable-selinux configuration may cause errors. In linux, the following error occurs: checking 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. the cause of this error is that the appropriate ncurse library cannot be found in the system. There is an rpm package in the image file (. iso or dvd disk) of the current system. We can find the ncurses-devel-5.5-24.20060715.i386.rpm package under/media/RHEL_5.5 i386 DVD/Server. (Tip: I have installed ncurses-5.5-24.20060715.i386.rpm locally) 6. install ncurses-devel-5.5-24.20060715.i386.rpm package rpm-ivh ncurses-devel-5.5-24.20060715.i386.rpm-i: Show package overview-l: Show package file list in package-d: Show document file list-v: show additional information-h: output the hash mark ('#') during installation before execution. /configure -- prefix =/soft-setup/vim -- enable-multibyte -- with-vim-name = vi -- with-features = huge -- disable-selinux7. run make8. under vim73 and then, make install