source: postlfs/editors/vim.xml@ 5363d29

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 5363d29 was 5363d29, checked in by Bruce Dubbs <bdubbs@…>, 12 years ago

Updated to gnupg-2.0.19.
Tag 7.2 libksba, libassuan, pth

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@10599 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 12.6 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY vim-download-http " ">
8 <!ENTITY vim-download-ftp "ftp://ftp.vim.org/pub/vim/unix/vim-&vim-version;.tar.bz2">
9 <!ENTITY vim-md5sum "5b9510a17074e2b37d8bb38ae09edbf2">
10 <!ENTITY vim-size "8.7 MB">
11 <!ENTITY vim-buildsize "97 MB">
12 <!ENTITY vim-time "0.8 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 </sect1info>
22
23 <title>Vim-&vim-version;</title>
24
25 <indexterm zone="vim">
26 <primary sortas="a-Vim">Vim</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to Vim</title>
31
32 <para>The <application>Vim</application> package, which is an
33 abbreviation for VI IMproved, contains a <command>vi</command>
34 clone with extra features as compared to the original
35 <command>vi</command>.</para>
36
37 <para>The default LFS instructions install <application>vim</application>
38 as a part of the base system. If you would prefer to link
39 <application>vim</application> against <application>X</application>,
40 you should recompile <application>vim</application> to enable GUI mode.
41 There is no need for special instructions since
42 <application>X</application> support is automatically detected.</para>
43
44 &lfs71_checked;
45
46 <bridgehead renderas="sect3">Package Information</bridgehead>
47 <itemizedlist spacing="compact">
48 <listitem>
49 <para>Download (HTTP): <ulink url="&vim-download-http;"/></para>
50 </listitem>
51 <listitem>
52 <para>Download (FTP): <ulink url="&vim-download-ftp;"/></para>
53 </listitem>
54 <listitem>
55 <para>Download MD5 sum: &vim-md5sum;</para>
56 </listitem>
57 <listitem>
58 <para>Download size: &vim-size;</para>
59 </listitem>
60 <listitem>
61 <para>Estimated disk space required: &vim-buildsize;</para>
62 </listitem>
63 <listitem>
64 <para>Estimated build time: &vim-time;</para>
65 </listitem>
66 </itemizedlist>
67
68 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
69 <itemizedlist spacing='compact'>
70 <listitem>
71 <para>Optional Patch: <ulink
72 url="&patch-root;/vim-&vim-version;-fixes-524.patch"/></para>
73 </listitem>
74 <listitem>
75 <para>Translated Vim messages: <ulink
76 url="ftp://ftp.vim.org/pub/vim/extra/vim-7.2-lang.tar.gz"/>
77 </para>
78 </listitem>
79 </itemizedlist>
80
81 <bridgehead renderas="sect3">Vim Dependencies</bridgehead>
82
83 <bridgehead renderas="sect4">Recommended</bridgehead>
84 <para role="recommended"><xref linkend="x-window-system"/></para>
85
86 <bridgehead renderas="sect4">Optional</bridgehead>
87 <para role="optional">
88 <xref linkend="gtk2"/> or
89 <ulink url="http://sourceforge.net/projects/lesstif/">LessTif</ulink>,
90 <xref linkend="python2"/>,
91 <xref linkend="tcl"/>,
92 <xref linkend="ruby"/>, and
93 <xref linkend="gpm"/>
94 </para>
95
96 <para condition="html" role="usernotes">User Notes:
97 <ulink url="&blfs-wiki;/vim"/></para>
98
99 </sect2>
100
101 <sect2 role="installation">
102 <title>Installation of Vim</title>
103
104 <note>
105 <para>If you recompile <application>Vim</application> to link against
106 <application>X</application> and your <application>X</application>
107 libraries are not on the root partition, you will no longer have an editor
108 for use in emergencies. You may choose to install an additional editor,
109 not link <application>Vim</application> against
110 <application>X</application>, or move the current <command>vim</command>
111 executable to the <filename class="directory">/bin</filename> directory
112 under a different name such as <filename>vi</filename>.</para>
113 </note>
114
115 <para>If you downloaded the optional set of <application>Vim</application> patches,
116 apply them now:</para>
117
118<screen><userinput>patch -Np1 -i ../vim-&vim-version;-fixes-524.patch</userinput></screen>
119
120 <para>If desired, unpack the translated messages archive:</para>
121
122<screen><userinput>tar -xf ../vim-7.2-lang.tar.gz --strip-components=1</userinput></screen>
123
124 <para>Install <application>Vim</application> by running the following
125 commands:</para>
126
127<screen><userinput>echo '#define SYS_VIMRC_FILE "/etc/vimrc"' &gt;&gt; src/feature.h &amp;&amp;
128echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' &gt;&gt; src/feature.h &amp;&amp;
129./configure --prefix=/usr --with-features=huge &amp;&amp;
130make</userinput></screen>
131
132 <para>To test the results, issue: <command>make test</command>.
133 The <application>vim</application> test suite outputs a lot of binary
134 data to the screen, which can cause issues with the settings of the
135 current terminal. This can be resolved by redirecting the output to a
136 log file. Even if one of the tests fails to produce the file
137 <filename>test.out</filename> in <filename
138 class="directory">src/testdir</filename>, the remaining tests will still
139 be executed. If all goes well,the final message in the log file will be
140 <literal>ALL DONE</literal>. <emphasis>Note</emphasis>: Some color tests
141 expect to be executed under the <command>xterm</command> terminal
142 emulator.</para>
143
144 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
145
146<screen role="root"><userinput>make install</userinput></screen>
147
148 <para>By default, Vim's documentation is installed in <filename
149 class="directory">/usr/share/vim</filename>. The following symlink allows
150 the documentation to be accessed via <filename
151 class="directory">/usr/share/doc/vim-&vim-version;</filename>, making it
152 consistent with the location of documentation for other packages:</para>
153
154<!-- When updating, be sure to change the line below for the proper 'vimxx' unpacked
155 directory -->
156
157<screen role="root"><userinput>ln -snfv ../vim/vim73/doc /usr/share/doc/vim-&vim-version;</userinput></screen>
158
159 <para>If you wish to update the runtime files, issue the
160 following command (requires <xref linkend="rsync"/>):</para>
161
162<screen><userinput>rsync -avzcP --delete --exclude="/dos/" --exclude="/spell/" \
163 ftp.nluug.nl::Vim/runtime/ ./runtime/</userinput></screen>
164
165 <para>To install the runtime files and regenerate the
166 <filename>tags</filename> file, as the
167 <systemitem class="username">root</systemitem> user issue:</para>
168
169<screen role="root"><userinput>make -C src installruntime &amp;&amp;
170vim -c ":helptags /usr/share/doc/vim-&vim-version;" -c ":q"</userinput></screen>
171
172 </sect2>
173
174 <sect2 role="commands">
175 <title>Command Explanations</title>
176
177 <!-- <para><command>patch &hellip;</command>: These patches are the same as the
178 ones in the LFS build used to update the package with upstream patches
179 and ensure the man pages are placed in the proper locations.</para>-->
180
181 <para><parameter>--with-features=huge</parameter>: This switch enables all
182 the additional features available in <application>Vim</application>.</para>
183
184 <para><option>--enable-gui=no</option>: This will prevent compilation of the
185 GUI. <application>Vim</application> will still link against
186 <application>X</application>, so that some features such as the client-server
187 model or the x11-selection (clipboard) are still available.</para>
188
189 <para><option>--without-x</option>: If you prefer not to link
190 <application>Vim</application> against <application>X</application>, use
191 this switch.</para>
192
193 <para><option>--enable-perlinterp</option>, <option>--enable-pythoninterp</option>,
194 <option>--enable-tclinterp</option>, <option>--enable-rubyinterp</option>:
195 These options include the Perl, Python, Tcl, or Ruby interpreters that allow
196 using other application code in <application>vim</application> scripts.</para>
197
198 </sect2>
199
200 <sect2 role="configuration">
201 <title>Configuring Vim</title>
202
203 <sect3 id='vim-config'>
204 <title>Config Files</title>
205
206 <para><filename>/etc/vimrc</filename> and
207 <filename>~/.vimrc</filename></para>
208
209 <indexterm zone="vim vim-config">
210 <primary sortas="e-etc-vimrc">/etc/vimrc</primary>
211 </indexterm>
212
213 <indexterm zone="vim vim-config">
214 <primary sortas="e-AA.vimrc">~/.vimrc</primary>
215 </indexterm>
216
217 </sect3>
218
219 <sect3 id='vim-init'>
220 <title>Configuration Information</title>
221
222 <para><application>Vim</application> has an integrated spell checker
223 which you can enable it if you issue the following in a vim window:
224 </para>
225
226<screen><literal>:setlocal spell spelllang=ru</literal></screen>
227
228 <para>This setting will enable spell checking for the Russian
229 language for the current session.</para>
230
231 <para>By default, <application>Vim</application> only installs spell
232 files for the English language. If a spell file is not available for
233 a language, then <application>Vim</application> will call the
234 <filename>$VIMRUNTIME/plugin/spellfile.vim</filename> plugin and will try
235 to obtain the *.spl and optionally *.sug from the vim ftp server,
236 by using the <filename>$VIMRUNTIME/plugin/netrwPlugin.vim</filename>
237 plugin.</para>
238
239<!-- When updating, be sure to change the line below for the proper 'vimxx' unpacked
240 directory -->
241 <para>Alternatively you can manually download the *.spl and *.sug files
242 from: <ulink url="ftp://ftp.vim.org/pub/vim/runtime/spell/"/> and save
243 them to <filename class="directory"> ~/.vim/spell </filename> or in
244 <filename class="directory">/usr/share/vim/vim73/spell/</filename>.</para>
245
246 <para>To find out what's new in <application>Vim-&vim-version;</application>
247 issue the following command:</para>
248
249<screen><literal>:help version-&vim-version;</literal></screen>
250
251 <para>For additional information on setting up
252 <application>Vim</application> configuration files, see <xref
253 linkend="postlfs-config-vimrc"/> and <ulink
254 url='http://www.vi-improved.org/vimrc.php'/>.</para>
255
256 </sect3>
257
258 </sect2>
259
260 <sect2 role="content">
261 <title>Contents</title>
262
263 <para>A list of the reinstalled files, along with their short
264 descriptions can be found in the <ulink
265 url="&lfs-root;/chapter06/vim.html#contents-vim">LFS Vim Installation
266 Instructions</ulink></para>
267
268 <segmentedlist>
269 <segtitle>Installed Programs</segtitle>
270 <segtitle>Installed Libraries</segtitle>
271 <segtitle>Installed Directory</segtitle>
272
273 <seglistitem>
274 <seg>gview, gvim, gvimdiff, rgview, and rgvim</seg>
275 <seg>None</seg>
276 <seg>/usr/share/vim</seg>
277 </seglistitem>
278 </segmentedlist>
279
280 <variablelist>
281 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
282 <?dbfo list-presentation="list"?>
283 <?dbhtml list-presentation="table"?>
284
285 <varlistentry id="gview">
286 <term><command>gview</command></term>
287 <listitem>
288 <para>starts <command>gvim</command> in read-only mode.</para>
289 <indexterm zone="vim gview">
290 <primary sortas="b-gview">gview</primary>
291 </indexterm>
292 </listitem>
293 </varlistentry>
294
295 <varlistentry id="gvim">
296 <term><command>gvim</command></term>
297 <listitem>
298 <para>is the editor that runs under <application>X</application>
299 and includes a GUI.</para>
300 <indexterm zone="vim gvim">
301 <primary sortas="b-gvim">gvim</primary>
302 </indexterm>
303 </listitem>
304 </varlistentry>
305
306 <varlistentry id="gvimdiff">
307 <term><command>gvimdiff</command></term>
308 <listitem>
309 <para>edits two or three versions of a file with
310 <command>gvim</command> and shows the differences.</para>
311 <indexterm zone="vim gvimdiff">
312 <primary sortas="b-gvimdiff">gvimdiff</primary>
313 </indexterm>
314 </listitem>
315 </varlistentry>
316
317 <varlistentry id="rgview">
318 <term><command>rgview</command></term>
319 <listitem>
320 <para>is a restricted version of <command>gview</command>.</para>
321 <indexterm zone="vim rgview">
322 <primary sortas="b-rgview">rgview</primary>
323 </indexterm>
324 </listitem>
325 </varlistentry>
326
327 <varlistentry id="rgvim">
328 <term><command>rgvim</command></term>
329 <listitem>
330 <para>is a restricted version of <command>gvim</command>. </para>
331 <indexterm zone="vim gvim">
332 <primary sortas="b-gvim">gvim</primary>
333 </indexterm>
334 </listitem>
335 </varlistentry>
336
337 </variablelist>
338
339 </sect2>
340
341</sect1>
Note: See TracBrowser for help on using the repository browser.