2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of Vim</title>
|
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>If you don't like vim to be installed as an editor on the LFS system,
|
2001-05-13 23:04:27 +01:00
|
|
|
you may want to download an alternative and install an editor you
|
|
|
|
prefer. There are a few hints how to install different editors
|
2001-09-07 23:20:09 +01:00
|
|
|
available at <ulink url="&hints-root;">&hints-root;</ulink>. The hints
|
2001-08-09 02:00:41 +01:00
|
|
|
which are currently available are 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-03-29 23:49:44 +00:00
|
|
|
<para><screen><userinput>./configure --prefix=/usr &&
|
2001-10-27 23:21:44 +01:00
|
|
|
make CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\" &&
|
|
|
|
make install &&
|
|
|
|
cd /usr/bin &&
|
|
|
|
ln -sf vim vi</userinput></screen></para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>If you plan on installing 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-03-29 23:49:44 +00:00
|
|
|
<para><screen><userinput>./configure --prefix=/usr --localstatedir=/var/lib/vim &&
|
2001-10-27 23:21:44 +01:00
|
|
|
make CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\" &&
|
|
|
|
make install &&
|
|
|
|
cd /usr/bin &&
|
|
|
|
ln -sf vim vi</userinput></screen></para>
|
2001-04-20 18:26:14 +01:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|