2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of Vim</title>
|
|
|
|
|
|
|
|
<para>
|
2001-04-16 23:57:21 +01:00
|
|
|
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-01-24 00:31:17 +00:00
|
|
|
available at <ulink
|
2001-04-21 17:47:37 +01:00
|
|
|
url="http://archive.linuxfromscratch.org/lfs-hints/editors/">http://archive.linuxfromscratch.org/lfs-hints/editors/</ulink>
|
2001-01-24 00:31:17 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2001-03-19 16:02:50 +00:00
|
|
|
Both the vim-rt and vim-src packages need to be unpacked to install Vim.
|
2001-01-24 00:31:17 +00:00
|
|
|
Both packages will unpack their files into the vim-5.7 directory. This
|
2001-04-09 18:38:08 +01:00
|
|
|
won't overwrite any files from the other package. So it doesn't matter
|
2001-03-19 16:02:50 +00:00
|
|
|
in which order it is done. Install Vim by running the following commands:
|
2001-01-24 00:31:17 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<blockquote><literallayout>
|
|
|
|
<userinput>./configure --prefix=/usr &&</userinput>
|
|
|
|
<userinput>make &&</userinput>
|
|
|
|
<userinput>make install &&</userinput>
|
|
|
|
<userinput>cd /usr/bin &&</userinput>
|
|
|
|
<userinput>ln -s vim vi</userinput>
|
|
|
|
</literallayout></blockquote>
|
|
|
|
|
|
|
|
<para>
|
2001-04-16 23:57:21 +01:00
|
|
|
If you plan on installing the X Window system on his LFS
|
|
|
|
system, you might want to re-compile Vim after he has 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
|
|
|
|
documentation.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
2001-04-20 18:26:14 +01:00
|
|
|
<sect2>
|
|
|
|
<title>FHS compliance notes</title>
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
<blockquote><literallayout>
|
|
|
|
<userinput>./configure --prefix=/usr --localstatedir=/var/lib/vim &&</userinput>
|
|
|
|
<userinput>make &&</userinput>
|
|
|
|
<userinput>make install &&</userinput>
|
|
|
|
<userinput>cd /usr/bin &&</userinput>
|
|
|
|
<userinput>ln -s vim vi &&</userinput>
|
|
|
|
<userinput>mkdir /var/lib/vim</userinput>
|
|
|
|
</literallayout></blockquote>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|