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 not wish to install Vim, build instructions for
|
---|
9 | alternative editors are available at
|
---|
10 | <ulink url="&blfs-root;view/cvs/postlfs/editors.html"/>.
|
---|
11 | Currently, there are instructions for Emacs, nano, and joe.</para>
|
---|
12 |
|
---|
13 | <para>Install Vim by running the following commands:</para>
|
---|
14 |
|
---|
15 | <para><screen><userinput>patch -Np1 -i ../vim-&vim-patch-version;.patch &&
|
---|
16 | ./configure --prefix=/usr &&
|
---|
17 | make CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\" &&
|
---|
18 | make install &&
|
---|
19 | ln -s vim /usr/bin/vi</userinput></screen></para>
|
---|
20 |
|
---|
21 | <para>If you plan to install the X Window system on your LFS
|
---|
22 | system, you might want to re-compile Vim after you have installed X. Vim
|
---|
23 | comes with a nice GUI version of the editor which requires X and a few
|
---|
24 | other libraries to be installed. For more information read the Vim
|
---|
25 | documentation.</para>
|
---|
26 |
|
---|
27 | </sect2>
|
---|
28 |
|
---|
29 | <sect2>
|
---|
30 | <title>FHS compliance notes</title>
|
---|
31 |
|
---|
32 | <para>The FHS says that editors like vim should use /var/lib/<editor>
|
---|
33 | for their temporary state files, like temporary save files for example.
|
---|
34 | If you wish vim to conform to the FHS, you should use this command set
|
---|
35 | instead of the one presented above:</para>
|
---|
36 |
|
---|
37 | <para><screen><userinput>patch -Np1 -i ../vim-&vim-patch-version;.patch &&
|
---|
38 | ./configure --prefix=/usr --localstatedir=/var/lib/vim &&
|
---|
39 | make CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\" &&
|
---|
40 | make install &&
|
---|
41 | ln -s vim /usr/bin/vi</userinput></screen></para>
|
---|
42 |
|
---|
43 | </sect2>
|
---|
44 |
|
---|