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