1 | <sect1 id="ch06-vim" xreflabel="Vim">
|
---|
2 | <title>Installing Vim-&vim-version;</title>
|
---|
3 | <?dbhtml filename="vim.html" dir="chapter06"?>
|
---|
4 |
|
---|
5 | <para>The Vim package contains a powerful text editor.</para>
|
---|
6 |
|
---|
7 | <screen>Estimated build time: &vim-time;
|
---|
8 | Estimated required disk space: &vim-compsize;</screen>
|
---|
9 |
|
---|
10 | &aa-vim-down;
|
---|
11 | &aa-vim-dep;
|
---|
12 |
|
---|
13 | <sect2><title> </title><para> </para></sect2>
|
---|
14 |
|
---|
15 | <sect2>
|
---|
16 | <title>Alternatives to Vim</title>
|
---|
17 | <para>If you prefer another editor -- like Emacs, Joe, or Nano -- to Vim,
|
---|
18 | have a look at <ulink url="&blfs-root;view/stable/postlfs/editors.html"/> for
|
---|
19 | suggested installation instructions.</para>
|
---|
20 | </sect2>
|
---|
21 |
|
---|
22 | <sect2><title> </title><para> </para></sect2>
|
---|
23 |
|
---|
24 | <sect2>
|
---|
25 | <title>Installation of Vim</title>
|
---|
26 |
|
---|
27 | <para>First change the default locations of the <filename>vimrc</filename> and
|
---|
28 | <filename>gvimrc</filename> files to <filename
|
---|
29 | class="directory">/etc</filename>.</para>
|
---|
30 |
|
---|
31 | <screen><userinput>echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h
|
---|
32 | echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' >> src/feature.h</userinput></screen>
|
---|
33 |
|
---|
34 | <para>Now prepare Vim for compilation:</para>
|
---|
35 |
|
---|
36 | <screen><userinput>./configure --prefix=/usr</userinput></screen>
|
---|
37 |
|
---|
38 | <para>Compile the package:</para>
|
---|
39 |
|
---|
40 | <screen><userinput>make</userinput></screen>
|
---|
41 |
|
---|
42 | <para>This package has a test suite available which performs a number of
|
---|
43 | checks to ensure it will function correctly. However, the Vim test suite will
|
---|
44 | output a whole lot of seemingly garbage characters to screen which can
|
---|
45 | sometimes wreak havoc with the running terminal. Accordingly, the running of
|
---|
46 | the test suite here is optional. Should you choose to run the Vim test suite,
|
---|
47 | the following command will do so:</para>
|
---|
48 |
|
---|
49 | <screen><userinput>make test</userinput></screen>
|
---|
50 |
|
---|
51 | <para>And install the package:</para>
|
---|
52 |
|
---|
53 | <screen><userinput>make install</userinput></screen>
|
---|
54 |
|
---|
55 | <para>When called as <userinput>vi</userinput>, <userinput>vim</userinput>
|
---|
56 | will run in old-fashioned vi-mode. To allow this, create a symlink:</para>
|
---|
57 |
|
---|
58 | <screen><userinput>ln -s vim /usr/bin/vi</userinput></screen>
|
---|
59 |
|
---|
60 | <para>If you are going to install the X Window system on your LFS system, you
|
---|
61 | may want to re-compile Vim after having installed X. Vim comes with a nice GUI
|
---|
62 | version of the editor that requires X and a few other libraries to be
|
---|
63 | installed. For more information read the Vim documentation.</para>
|
---|
64 |
|
---|
65 | </sect2>
|
---|
66 |
|
---|
67 | &c6-cf-vim;
|
---|
68 |
|
---|
69 | &aa-vim-shortdesc;
|
---|
70 | &aa-vim-desc;
|
---|
71 |
|
---|
72 | </sect1>
|
---|
73 |
|
---|