Restart your system in the LFS system. From now on you don't need to start your normal Linux system anymore. The reason we had to do this is because the LFS system was lacking a text editor.
In order to install Vim we need to have the ncurses libraries installed.
configure --with-shared
Because Ncurses isn't 100% correct according to the latest C standard, we need to compile it with gcc2723
make CC=/usr/gcc2723/bin/gcc
make install.data
make install
Vim comes in two separate parts: A 'src' package and a 'rt' (run-time) package. You need both in order to install Vim. If you put both archives in the same directory, the unpacked files of both archives will appear in the same directory that will be created when you unpack the first (it doesn't matter which one you unpack first).
configure
Also Vim doesn't compile with gcc 2.95.2, so we have to compile it with gcc 2.7.2.3 as well.
make CC=/usr/gcc2723/bin/gcc
make install