Contents
A list of the reinstalled files, along with their short descriptions can be found at ../../../../lfs/view/stable/chapter06/vim.html#contents-vim.
This chapter is referenced in the LFS book for those wishing to use other editors on their LFS system. You're also shown how some LFS installed programs benefit from being recompiled after GUI libraries have been installed.
The Vim package, which is an abbreviation for VI IMproved, contains a vi clone with extra features as compared to the original vi.
The default LFS instructions install vim as a part of the base system. If you would prefer to link vim against X, you should recompile vim to enable GUI mode. There is no need for special instructions since X support is automatically detected.
Download (HTTP): http://ftp.at.vim.org/pub/vim/unix/vim-6.4.tar.bz2
Download (FTP): ftp://ftp.vim.org/pub/vim/unix/vim-6.4.tar.bz2
Download MD5 sum: 774c14d93ce58674b3b2c880edd12d77
Download size: 3.6 MB
Estimated disk space required: 41 MB
Estimated build time: 0.6 SBU
Translated Vim messages: http://ftp.at.vim.org/pub/vim/extra/vim-6.4-lang.tar.gz
GTK+-2.8.20 OR LessTif-0.94.4 OR GTK+-1.2.10, Python-2.4.3, Tcl-8.4.13, Ruby-1.8.5, and GPM-1.20.1
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/vim
If you recompile Vim to link against X, and your X libraries are not on the root partition, you will no longer have an editor for use in emergencies. You may choose to install an additional editor, not link Vim against X, or move the current vim executable to the /bin directory under a different name such as vi.
If desired, unpack the translated messages archive:
tar -xf ../vim-6.4-lang.tar.gz --strip-components=1
Install Vim by running the following commands:
echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h && echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' >> src/feature.h && ./configure --prefix=/usr --with-features=huge && make
Now, as the root user:
make install
In UTF-8 locales, the vimtutor program tries to convert the tutorials from ISO-8859-1 to UTF-8. Since some tutorials are not in ISO-8859-1, the text in them is thus made unreadable. If you unpacked the vim-6.4-lang.tar.gz archive and are going to use a UTF-8 based locale, remove non-ISO-8859-1 tutorials. An English tutorial will be used instead.
rm -f /usr/share/vim/vim64/tutor/tutor.{gr,pl,ru,sk}
rm -f /usr/share/vim/vim64/tutor/tutor.??.*
--with-features=huge: This switch enables all the additional features available in Vim.
--enable-gui=no: This will prevent compilation of the GUI. Vim will still link against X so that some nice eye-candy such as updating the title bar of an Xterm window are available.
--without-x: If you prefer not to link Vim against X, use this switch.
A list of the reinstalled files, along with their short descriptions can be found at ../../../../lfs/view/stable/chapter06/vim.html#contents-vim.
Last updated on 2006-06-21 11:26:07 -0500