/*创建libtinfo.so的符号链接*/ cd /mnt/sysroot/usr/libln -s libncurses.so.5 libtinfo.so.5 ln -s libtinfo.so.5 libtinfo.so将vim可执行文件移植到目标机cd /home/liangwode/test/vim74/src cp vim /mnt/sysroot/usr/sbin cd /mnt/sysroot/usr/sbin chmod 777 vim删除vi,并将vi链接到vimcd /bin rm -f vi ln -s /usr/sbin/vim vi重启目标机,开机后,输入vim,大功告成vim
~ ~ VIM - Vi IMproved ~ ~ version 7.4 ~ by Bram Moolenaar et al. ~ Vim is open source and freely distributable ~ ~ Sponsor Vim development! ~ type :help sponsor<Enter> for information ~ ~ type :q<Enter> to exit ~ type :help<Enter> or <F1> for on-line help ~ type :help version7<Enter> for version info ~ ~ Running in Vi compatible mode ~ type :set nocp<Enter> for Vim defaults ~ type :help cp-default<Enter> for info on this ~ ~ ~本文永久更新链接地址