1 | <sect2>
|
---|
2 | <title>Installation of Vim</title>
|
---|
3 |
|
---|
4 | <para>This package requires its patch to be applied before you can
|
---|
5 | install it. Make sure it's unpacked before running the installation
|
---|
6 | commands.</para>
|
---|
7 |
|
---|
8 | <para>If you don't like vim to be installed as an editor on your LFS system,
|
---|
9 | you may want to download an alternative and install the editor you
|
---|
10 | prefer. There are a few hints on how to install different editors
|
---|
11 | available at <ulink url="&hints-index;#editors"/>. Currently there are
|
---|
12 | hints for Emacs, joe, and nano.</para>
|
---|
13 |
|
---|
14 | <para>Install Vim by running the following commands:</para>
|
---|
15 |
|
---|
16 | <para><screen><userinput>patch -Np1 -i ../vim-&vim-patch-version;.patch &&
|
---|
17 | ./configure --prefix=/usr &&
|
---|
18 | make CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\" &&
|
---|
19 | make install &&
|
---|
20 | ln -sf vim /usr/bin/vi</userinput></screen></para>
|
---|
21 |
|
---|
22 | <para>If you plan to install the X Window system on your LFS
|
---|
23 | system, you might want to re-compile Vim after you have installed X. Vim
|
---|
24 | comes with a nice GUI version of the editor which requires X and a few
|
---|
25 | other libraries to be installed. For more information read the Vim
|
---|
26 | documentation.</para>
|
---|
27 |
|
---|
28 | </sect2>
|
---|
29 |
|
---|
30 | <sect2>
|
---|
31 | <title>FHS compliance notes</title>
|
---|
32 |
|
---|
33 | <para>The FHS says that editors like vim should use /var/lib/<editor>
|
---|
34 | for their temporary state files, like temporary save files for example.
|
---|
35 | If you wish vim to conform to the FHS, you should use this command set
|
---|
36 | instead of the one presented above:</para>
|
---|
37 |
|
---|
38 | <para><screen><userinput>patch -Np1 -i ../vim-&vim-patch-version;.patch &&
|
---|
39 | ./configure --prefix=/usr --localstatedir=/var/lib/vim &&
|
---|
40 | make CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\" &&
|
---|
41 | make install &&
|
---|
42 | ln -sf vim /usr/bin/vi</userinput></screen></para>
|
---|
43 |
|
---|
44 | </sect2>
|
---|
45 |
|
---|