2003-01-16 03:37:28 +00:00
|
|
|
<sect2><title> </title><para> </para></sect2>
|
|
|
|
|
2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of Vim</title>
|
|
|
|
|
2003-01-16 03:37:28 +00:00
|
|
|
<para>Prepare Vim to be compiled:</para>
|
|
|
|
|
|
|
|
<para><screen><userinput>./configure --prefix=/usr</userinput></screen></para>
|
|
|
|
|
|
|
|
<para>Continue with compiling the package:</para>
|
|
|
|
|
|
|
|
<para><screen><userinput>make CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\"</userinput></screen></para>
|
|
|
|
|
2003-01-27 22:10:07 +00:00
|
|
|
<para>The meaning of the make option is:</para>
|
|
|
|
|
|
|
|
<itemizedlist>
|
2003-02-03 23:24:24 +00:00
|
|
|
<listitem><para><userinput>CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\"</userinput>:
|
2003-02-05 18:42:10 +00:00
|
|
|
This option causes vim to look for the <filename>/etc/vimrc</filename> file
|
|
|
|
which contains vim's global settings. Normally, this file is assumed to be
|
|
|
|
located in <filename class="directory">/usr/share/vim</filename>, but we
|
|
|
|
feel that <filename class="directory">/etc</filename> is a more logical
|
|
|
|
place for this kind of file.</para></listitem>
|
2003-01-27 22:10:07 +00:00
|
|
|
</itemizedlist>
|
|
|
|
|
2003-01-16 03:37:28 +00:00
|
|
|
<para>Finish installing the package:</para>
|
2002-05-30 12:51:27 +01:00
|
|
|
|
2003-01-16 03:37:28 +00:00
|
|
|
<para><screen><userinput>make install</userinput></screen></para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2003-01-16 03:37:28 +00:00
|
|
|
<para>Vim can run in old-fashioned <emphasis>vi</emphasis> mode by
|
|
|
|
creating a symlink, which may be created with the following command:</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2003-01-16 03:37:28 +00:00
|
|
|
<para><screen><userinput>ln -s 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>
|
|
|
|
|