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-07-22 20:45:10 +01:00
|
|
|
<para>Both the vim-rt and vim-src packages need to be unpacked to install Vim.
|
2001-06-27 23:58:56 +01:00
|
|
|
Both packages will unpack their files into the vim-&vim-version; 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-07-22 20:45:10 +01:00
|
|
|
in which order it is done. Install Vim by running the following commands:</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-08-09 02:00:41 +01:00
|
|
|
<para><screen><userinput>echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> \
|
2001-09-02 20:24:11 +01:00
|
|
|
src/feature.h &&</userinput>
|
2001-08-09 02:00:41 +01:00
|
|
|
<userinput>./configure --prefix=/usr &&</userinput>
|
2001-07-10 16:06:31 +01:00
|
|
|
<userinput>make &&</userinput>
|
|
|
|
<userinput>make install &&</userinput>
|
|
|
|
<userinput>cd /usr/bin &&</userinput>
|
2001-08-23 23:38:49 +01:00
|
|
|
<userinput>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
|
|
|
|
2001-08-09 02:00:41 +01:00
|
|
|
<para><screen><userinput>echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> \
|
2001-09-02 20:24:11 +01:00
|
|
|
src/feature.h &&</userinput>
|
2001-08-09 02:00:41 +01:00
|
|
|
<userinput>./configure --prefix=/usr --localstatedir=/var/lib/vim &&</userinput>
|
2001-07-10 16:06:31 +01:00
|
|
|
<userinput>make &&</userinput>
|
|
|
|
<userinput>make install &&</userinput>
|
|
|
|
<userinput>cd /usr/bin &&</userinput>
|
2001-08-23 23:38:49 +01:00
|
|
|
<userinput>ln -sf vim vi &&</userinput>
|
2001-07-22 20:45:10 +01:00
|
|
|
<userinput>mkdir /var/lib/vim</userinput></screen></para>
|
2001-04-20 18:26:14 +01:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|