compile vi from source code

1.install ncurses library (vi  depend on ncurses library)

./configure --prefix=/usr --with-termlib

make -j4 && make install

2.install vi

./configure --prefix=/usr --with-tlib=tinfo

make -j4 && make install

原文地址:https://www.cnblogs.com/dakewei/p/9142834.html