source: postlfs/editors/vim.xml@ 52f6fa3

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 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 gimp3 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/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 52f6fa3 was 6ae4193, checked in by Randy McMurchy <randy@…>, 17 years ago

Fixed minor typos

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

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