1 | <sect2>
|
---|
2 | <title>Installation of Vim</title>
|
---|
3 |
|
---|
4 | <para>If you don't like vim to be installed as an editor on the LFS system,
|
---|
5 | you may want to download an alternative and install an editor you
|
---|
6 | prefer. There are a few hints how to install different editors
|
---|
7 | available at <ulink
|
---|
8 | url="http://archive.linuxfromscratch.org/lfs-hints/">http://www.archive.linuxfromscratch.org/lfs-hints/</ulink>
|
---|
9 | . The hints which are currently available are for Emacs, Joe and nano.</para>
|
---|
10 |
|
---|
11 | <para>Both the vim-rt and vim-src packages need to be unpacked to install Vim.
|
---|
12 | Both packages will unpack their files into the vim-&vim-version; directory. This
|
---|
13 | won't overwrite any files from the other package. So it doesn't matter
|
---|
14 | in which order it is done. Install Vim by running the following commands:</para>
|
---|
15 |
|
---|
16 | <para><screen><userinput>./configure --prefix=/usr &&</userinput>
|
---|
17 | <userinput>make &&</userinput>
|
---|
18 | <userinput>make install &&</userinput>
|
---|
19 | <userinput>cd /usr/bin &&</userinput>
|
---|
20 | <userinput>ln -s vim vi</userinput></screen></para>
|
---|
21 |
|
---|
22 | <para>If you plan on installing 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>./configure --prefix=/usr --localstatedir=/var/lib/vim &&</userinput>
|
---|
39 | <userinput>make &&</userinput>
|
---|
40 | <userinput>make install &&</userinput>
|
---|
41 | <userinput>cd /usr/bin &&</userinput>
|
---|
42 | <userinput>ln -s vim vi &&</userinput>
|
---|
43 | <userinput>mkdir /var/lib/vim</userinput></screen></para>
|
---|
44 |
|
---|
45 | </sect2>
|
---|
46 |
|
---|