1 | <sect2><title> </title><para> </para></sect2>
|
---|
2 |
|
---|
3 | <sect2>
|
---|
4 | <title>Installation of Vim</title>
|
---|
5 |
|
---|
6 | <para>This package requires its patch to be applied before you can
|
---|
7 | install it. This patch fixes a compile problem with GCC-3.2:</para>
|
---|
8 |
|
---|
9 | <para><screen><userinput>patch -Np1 -i ../vim-&vim-patch-version;.patch</userinput></screen></para>
|
---|
10 |
|
---|
11 | <para>Prepare Vim to be compiled:</para>
|
---|
12 |
|
---|
13 | <para><screen><userinput>./configure --prefix=/usr</userinput></screen></para>
|
---|
14 |
|
---|
15 | <para>Continue with compiling the package:</para>
|
---|
16 |
|
---|
17 | <para><screen><userinput>make CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\"</userinput></screen></para>
|
---|
18 |
|
---|
19 | <para>The meaning of the make option is:</para>
|
---|
20 |
|
---|
21 | <itemizedlist>
|
---|
22 | <listitem><para><userinput>CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\"</userinput>:
|
---|
23 | This option above causes vim to look for the
|
---|
24 | <filename>/etc/vimrc</filename> file which contains vim's global settings.
|
---|
25 | Normally, this file is assumed to be located in <filename
|
---|
26 | class="directory">/usr/share/vim</filename>, but we feel that
|
---|
27 | <filename class="directory">/etc</filename> is a more logical place for this
|
---|
28 | kind of file.</para></listitem>
|
---|
29 | </itemizedlist>
|
---|
30 |
|
---|
31 | <para>The <emphasis>CPPFLAGS</emphasis> option above causes vim to look
|
---|
32 | for the /etc/vimrc file which contains vim's global settings. Normally,
|
---|
33 | this file is assumed to be located in <filename>/usr/share/vim</filename>,
|
---|
34 | but we feel that <filename>/etc</filename> is a more logical place for
|
---|
35 | this kind of file.</para>
|
---|
36 |
|
---|
37 | <para>Finish installing the package:</para>
|
---|
38 |
|
---|
39 | <para><screen><userinput>make install</userinput></screen></para>
|
---|
40 |
|
---|
41 | <para>Vim can run in old-fashioned <emphasis>vi</emphasis> mode by
|
---|
42 | creating a symlink, which may be created with the following command:</para>
|
---|
43 |
|
---|
44 | <para><screen><userinput>ln -s vim /usr/bin/vi</userinput></screen></para>
|
---|
45 |
|
---|
46 | <para>If you plan to install the X Window system on your LFS
|
---|
47 | system, you might want to re-compile Vim after you have installed X. Vim
|
---|
48 | comes with a nice GUI version of the editor which requires X and a few
|
---|
49 | other libraries to be installed. For more information read the Vim
|
---|
50 | documentation.</para>
|
---|
51 |
|
---|
52 | </sect2>
|
---|
53 |
|
---|