2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of Vim</title>
|
|
|
|
|
2002-05-28 01:52:20 +01:00
|
|
|
<para>If you don't like vim to be installed as an editor on your LFS system,
|
|
|
|
you may want to download an alternative and install the editor you
|
|
|
|
prefer. There are a few hints on how to install different editors
|
|
|
|
available at <ulink url="&hints-root;"/>. Currently there are hints
|
|
|
|
for Emacs, joe, and nano.</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-10-08 02:04:31 +01:00
|
|
|
<para>Install Vim by running the following commands:</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2002-05-27 04:17:49 +01:00
|
|
|
<para><screen><userinput>patch -Np1 -i ../vim-&vim-version;.patch &&
|
|
|
|
./configure --prefix=/usr &&
|
2001-10-27 23:21:44 +01:00
|
|
|
make CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\" &&
|
|
|
|
make install &&
|
2002-05-02 21:15:02 +01:00
|
|
|
ln -sf vim /usr/bin/vi</userinput></screen></para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2002-05-28 01:52:20 +01:00
|
|
|
<para>If you plan to install the X Window system on your LFS
|
2001-05-13 23:07:24 +01:00
|
|
|
system, you might want to re-compile Vim after you have installed X. Vim
|
2001-01-24 00:31:17 +00:00
|
|
|
comes with a nice GUI version of the editor which requires X and a few
|
|
|
|
other libraries to be installed. For more information read the Vim
|
2001-07-22 20:45:10 +01:00
|
|
|
documentation.</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
2001-04-20 18:26:14 +01:00
|
|
|
<sect2>
|
|
|
|
<title>FHS compliance notes</title>
|
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>The FHS says that editors like vim should use /var/lib/<editor>
|
|
|
|
for their temporary state files, like temporary save files for example.
|
|
|
|
If you wish vim to conform to the FHS, you should use this command set
|
|
|
|
instead of the one presented above:</para>
|
2001-04-20 18:26:14 +01:00
|
|
|
|
2002-05-28 03:16:10 +01:00
|
|
|
<para><screen><userinput>patch -Np1 -i ../vim-&vim-version;.patch &&
|
|
|
|
./configure --prefix=/usr --localstatedir=/var/lib/vim &&
|
2001-10-27 23:21:44 +01:00
|
|
|
make CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\" &&
|
|
|
|
make install &&
|
2002-05-02 21:15:02 +01:00
|
|
|
ln -sf vim /usr/bin/vi</userinput></screen></para>
|
2001-04-20 18:26:14 +01:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|