1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY vim-download-http "http://ftp.at.vim.org/pub/vim/unix/vim-&vim-version;.tar.bz2">
|
---|
8 | <!ENTITY vim-download-ftp "ftp://ftp.vim.org/pub/vim/unix/vim-&vim-version;.tar.bz2">
|
---|
9 | <!ENTITY vim-md5sum "821fda8f14d674346b87e3ef9cb96389">
|
---|
10 | <!ENTITY vim-size "3.7 MB">
|
---|
11 | <!ENTITY vim-buildsize "48 MB">
|
---|
12 | <!ENTITY vim-time "0.59 SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="vim" xreflabel="Vim-&vim-version;">
|
---|
16 | <sect1info>
|
---|
17 | <othername>$LastChangedBy$</othername>
|
---|
18 | <date>$Date$</date>
|
---|
19 | </sect1info>
|
---|
20 | <?dbhtml filename="vim.html"?>
|
---|
21 | <title>Vim-&vim-version;</title>
|
---|
22 | <indexterm zone="vim"><primary
|
---|
23 | sortas="a-Vim">Vim</primary></indexterm>
|
---|
24 |
|
---|
25 | <sect2>
|
---|
26 | <title>Introduction to <application>Vim</application></title>
|
---|
27 |
|
---|
28 | <para>The <application>Vim</application> package, which is an
|
---|
29 | abbreviation for VI IMproved, contains a <command>vi</command>
|
---|
30 | clone with extra features as compared to the original
|
---|
31 | <command>vi</command>.</para>
|
---|
32 |
|
---|
33 | <para>The default <acronym>LFS</acronym> instructions install
|
---|
34 | <application>vim</application> as a part of the base system.
|
---|
35 | If you would prefer to link <application>vim</application>
|
---|
36 | against <application>X</application>, you should recompile
|
---|
37 | <application>vim</application> to enable <acronym>GUI</acronym>
|
---|
38 | mode. There is no need for special instructions since
|
---|
39 | <application>X</application> support is automatically detected.
|
---|
40 | </para>
|
---|
41 |
|
---|
42 | <sect3><title>Package information</title>
|
---|
43 | <itemizedlist spacing='compact'>
|
---|
44 | <listitem><para>Download (HTTP): <ulink
|
---|
45 | url="&vim-download-http;"/></para></listitem>
|
---|
46 | <listitem><para>Download (FTP): <ulink
|
---|
47 | url="&vim-download-ftp;"/></para></listitem>
|
---|
48 | <listitem><para>Download MD5 sum: &vim-md5sum;</para></listitem>
|
---|
49 | <listitem><para>Download size: &vim-size;</para></listitem>
|
---|
50 | <listitem><para>Estimated disk space required:
|
---|
51 | &vim-buildsize;</para></listitem>
|
---|
52 | <listitem><para>Estimated build time:
|
---|
53 | &vim-time;</para></listitem></itemizedlist>
|
---|
54 | </sect3>
|
---|
55 |
|
---|
56 | <sect3><title>Additional downloads</title>
|
---|
57 | <itemizedlist spacing='compact'>
|
---|
58 | <listitem><para>Translated Vim messages: <ulink
|
---|
59 | url="http://ftp.at.vim.org/pub/vim/extra/vim-&vim-version;-lang.tar.gz"/>
|
---|
60 | </para></listitem>
|
---|
61 | </itemizedlist></sect3>
|
---|
62 |
|
---|
63 | <sect3><title><application>Vim</application> dependencies</title>
|
---|
64 | <sect4><title>Recommended</title>
|
---|
65 | <para><application>X</application>
|
---|
66 | (<xref linkend="xfree86"/> or <xref linkend="xorg"/>)</para>
|
---|
67 | </sect4>
|
---|
68 |
|
---|
69 | <sect4><title>Optional</title>
|
---|
70 | <para><xref linkend="gtk2"/>,
|
---|
71 | <xref linkend="lesstif"/>,
|
---|
72 | <xref linkend="python"/>,
|
---|
73 | <xref linkend="tcl"/>,
|
---|
74 | <xref linkend="ruby"/>
|
---|
75 | and <xref linkend="gpm"/>
|
---|
76 | </para></sect4>
|
---|
77 | </sect3>
|
---|
78 |
|
---|
79 | </sect2>
|
---|
80 |
|
---|
81 | <sect2>
|
---|
82 | <title>Installation of <application>Vim</application></title>
|
---|
83 |
|
---|
84 | <note><para>If you recompile vim to link against <application>X</application>,
|
---|
85 | and your <application>X</application> libs are not on the root partition, you
|
---|
86 | will no longer have an editor for use in emergencies. You may choose to
|
---|
87 | install an additional editor, not link vim against X, or move the current
|
---|
88 | <command>vim</command> executable to the <filename>/bin</filename> directory
|
---|
89 | under a different name such as <filename>vi</filename>.</para></note>
|
---|
90 |
|
---|
91 | <para>If desired unpack the translated messages archive:</para>
|
---|
92 |
|
---|
93 | <screen><userinput><command>tar -zxf ../vim-&vim-version;-lang.tar.gz --strip-path=1</command></userinput></screen>
|
---|
94 |
|
---|
95 | <para>Install <application>Vim</application> by running the following
|
---|
96 | commands:</para>
|
---|
97 |
|
---|
98 | <screen><userinput><command>echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h &&
|
---|
99 | echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' >> src/feature.h &&
|
---|
100 | ./configure --prefix=/usr \
|
---|
101 | --with-features=huge &&
|
---|
102 | make</command></userinput></screen>
|
---|
103 |
|
---|
104 | <para>Now, as the root user:</para>
|
---|
105 |
|
---|
106 | <screen><userinput role='root'><command>make install</command></userinput></screen>
|
---|
107 |
|
---|
108 | </sect2>
|
---|
109 |
|
---|
110 | <sect2>
|
---|
111 | <title>Command explanations</title>
|
---|
112 |
|
---|
113 | <para><parameter>--with-features=huge</parameter>: This switch enables all
|
---|
114 | the additional features available in <application>Vim</application>.</para>
|
---|
115 |
|
---|
116 | <para><option>--enable-gui=no</option>: If you prefer not to link
|
---|
117 | <application>Vim</application> against <application>X</application>, use
|
---|
118 | this switch.</para>
|
---|
119 |
|
---|
120 | </sect2>
|
---|
121 |
|
---|
122 | <sect2>
|
---|
123 | <title>Contents</title>
|
---|
124 |
|
---|
125 | <para>A list of the reinstalled files, along with their short descriptions
|
---|
126 | can be found at <ulink
|
---|
127 | url="http://www.linuxfromscratch.org/lfs/view/6.0/chapter06/vimhtml"/>.
|
---|
128 | </para>
|
---|
129 |
|
---|
130 | <segmentedlist>
|
---|
131 | <segtitle>Installed Programs</segtitle>
|
---|
132 | <segtitle>Installed Libraries</segtitle>
|
---|
133 | <segtitle>Installed Directory</segtitle>
|
---|
134 | <seglistitem>
|
---|
135 | <seg>gview, gvim, gvimdiff, rgview, rgvim</seg>
|
---|
136 | <seg>None</seg>
|
---|
137 | <seg>/usr/share/vim</seg>
|
---|
138 | </seglistitem>
|
---|
139 | </segmentedlist>
|
---|
140 |
|
---|
141 | <variablelist>
|
---|
142 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
143 | <?dbfo list-presentation="list"?>
|
---|
144 |
|
---|
145 | <varlistentry id="gview">
|
---|
146 | <term><filename>gview</filename></term>
|
---|
147 | <listitem><para>starts <command>gvim</command> in read-only mode.</para>
|
---|
148 | <indexterm zone="vim gview">
|
---|
149 | <primary sortas="b-gview">gview</primary></indexterm>
|
---|
150 | </listitem>
|
---|
151 | </varlistentry>
|
---|
152 |
|
---|
153 | <varlistentry id="gvim">
|
---|
154 | <term><filename>gvim</filename></term>
|
---|
155 | <listitem><para>is the editor that runs under X and includes a <acronym>GUI</acronym></para>
|
---|
156 | <indexterm zone="vim gvim">
|
---|
157 | <primary sortas="b-gvim">gvim</primary></indexterm>
|
---|
158 | </listitem>
|
---|
159 | </varlistentry>
|
---|
160 |
|
---|
161 | <varlistentry id="gvimdiff">
|
---|
162 | <term><filename>gvimdiff</filename></term>
|
---|
163 | <listitem><para>edits two or three versions of a file with
|
---|
164 | <command>gvim</command> and show differences.</para>
|
---|
165 | <indexterm zone="vim gvimdiff">
|
---|
166 | <primary sortas="b-gvimdiff">gvimdiff</primary></indexterm>
|
---|
167 | </listitem>
|
---|
168 | </varlistentry>
|
---|
169 |
|
---|
170 | <varlistentry id="rgview">
|
---|
171 | <term><filename>rgview</filename></term>
|
---|
172 | <listitem><para>is a restricted version of <command>gview</command>.</para>
|
---|
173 | <indexterm zone="vim rgview">
|
---|
174 | <primary sortas="b-rgview">rgview</primary></indexterm>
|
---|
175 | </listitem>
|
---|
176 | </varlistentry>
|
---|
177 |
|
---|
178 | <varlistentry id="rgvim">
|
---|
179 | <term><filename>rgvim</filename></term>
|
---|
180 | <listitem><para>is a restricted version of <command>gvim</command>. </para>
|
---|
181 | <indexterm zone="vim gvim">
|
---|
182 | <primary sortas="b-gvim">gvim</primary></indexterm>
|
---|
183 | </listitem>
|
---|
184 | </varlistentry>
|
---|
185 |
|
---|
186 | </variablelist>
|
---|
187 |
|
---|
188 | </sect2>
|
---|
189 |
|
---|
190 | </sect1>
|
---|