source: postlfs/editors/vim.xml@ 62431cb3

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 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 62431cb3 was 3b10fa8, checked in by Bruce Dubbs <bdubbs@…>, 13 years ago

Remove obsolete gtk+1, glib1, xmms, gsview.
Return glib2 to latest stable: glib-2.30.1.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@8937 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
[fcb77dd]7 <!ENTITY vim-download-http "http://www2.nl.vim.org/unix/vim-&vim-version;.tar.bz2">
[b5951ec]8 <!ENTITY vim-download-ftp "ftp://ftp.vim.org/pub/vim/unix/vim-&vim-version;.tar.bz2">
[fcb77dd]9 <!ENTITY vim-md5sum "f0901284b338e448bfd79ccca0041254">
10 <!ENTITY vim-size "7.2 MB">
[40fe030]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
[7f4cdbc0]70 url="&patch-root;/vim-&vim-version;-fixes-5.patch"/></para>
[0f39a2b]71 </listitem>
[0ec75653]72 <listitem>
[3aa07d1]73 <para>Translated Vim messages: <ulink
[fcb77dd]74 url="http://www2.nl.vim.org/extra/vim-&vim-version;-lang.tar.gz"/>
[0ec75653]75 </para>
76 </listitem>
77 </itemizedlist>
78
[3493b1f]79 <bridgehead renderas="sect3">Vim Dependencies</bridgehead>
[0ec75653]80
81 <bridgehead renderas="sect4">Recommended</bridgehead>
[e77976f]82 <para role="recommended"><xref linkend="x-window-system"/></para>
[0ec75653]83
84 <bridgehead renderas="sect4">Optional</bridgehead>
[3b10fa8]85 <para role="optional">
86 <xref linkend="gtk2"/> or
87 <xref linkend="lesstif"/>
88 <xref linkend="python"/>,
89 <xref linkend="tcl"/>,
90 <xref linkend="ruby"/>, and
91 <xref linkend="gpm"/>
92 </para>
[6ae4193]93 <!-- mentioned below as a runtime dependency
[410e228b]94 <xref linkend="rsync"/> (to update the runtime files)
[6ae4193]95 -->
[0ec75653]96
[3597eb6]97 <para condition="html" role="usernotes">User Notes:
98 <ulink url="&blfs-wiki;/vim"/></para>
99
[0ec75653]100 </sect2>
101
102 <sect2 role="installation">
103 <title>Installation of Vim</title>
104
105 <note>
[3aa07d1]106 <para>If you recompile <application>Vim</application> to link against
[32d0e29]107 <application>X</application> and your <application>X</application>
[823b1a3]108 libraries are not on the root partition, you will no longer have an editor
[3aa07d1]109 for use in emergencies. You may choose to install an additional editor,
110 not link <application>Vim</application> against
[d612b9f]111 <application>X</application>, or move the current <command>vim</command>
[3aa07d1]112 executable to the <filename class="directory">/bin</filename> directory
[0ec75653]113 under a different name such as <filename>vi</filename>.</para>
114 </note>
115
116 <para>If desired, unpack the translated messages archive:</para>
117
[8ba8ab5]118<screen><userinput>tar -xf ../vim-&vim-version;-lang.tar.gz --strip-components=1</userinput></screen>
[d612b9f]119
[0ec75653]120 <para>Install <application>Vim</application> by running the following
121 commands:</para>
[b5951ec]122
[7f4cdbc0]123<screen><userinput>patch -Np1 -i ../vim-&vim-version;-fixes-5.patch &amp;&amp;
[e26dfbf7]124echo '#define SYS_VIMRC_FILE "/etc/vimrc"' &gt;&gt; src/feature.h &amp;&amp;
[b5951ec]125echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' &gt;&gt; src/feature.h &amp;&amp;
[8e8356d]126./configure --prefix=/usr --with-features=huge &amp;&amp;
[0ec75653]127make</userinput></screen>
128
[83d6546]129 <para>To test the results, issue: <command>make test</command>.
130 The <application>vim</application> test suite outputs a lot of binary
131 data to the screen, which can cause issues with the settings of the
132 current terminal. This can be resolved by redirecting the output to a
133 log file. Even if one of the tests fails to produce the file
134 <filename>test.out</filename> in <filename
135 class="directory">src/testdir</filename>, the remaining tests will still
136 be executed. If all goes well,the final message in the log file will be
137 <literal>ALL DONE</literal>. <emphasis>Note</emphasis>: Some color tests
138 expect to be executed under the <command>xterm</command> terminal
139 emulator.</para>
140
[0ec75653]141 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
142
143<screen role="root"><userinput>make install</userinput></screen>
144
[95799899]145 <para>By default, Vim's documentation is installed in <filename
146 class="directory">/usr/share/vim</filename>. The following symlink allows
147 the documentation to be accessed via <filename
[6e11352]148 class="directory">/usr/share/doc/vim-&vim-version;</filename>, making it
149 consistent with the location of documentation for other packages:</para>
[841a93f]150
[410e228b]151<!-- When updating, be sure to change the line below for the proper 'vimxx' unpacked
[841a93f]152 directory -->
153
[fcb77dd]154<screen role="root"><userinput>ln -snfv ../vim/vim72/doc /usr/share/doc/vim-&vim-version;</userinput></screen>
[95799899]155
[6ae4193]156 <para>If you wish to update the runtime files, issue the
157 following command (requires <xref linkend="rsync"/>):</para>
[fd7e0ed6]158
[32d0e29]159<screen><userinput>rsync -avzcP --delete --exclude="/dos/" --exclude="/spell/" \
160 ftp.nluug.nl::Vim/runtime/ ./runtime/</userinput></screen>
[6e11352]161
[32d0e29]162 <para>To install the runtime files and regenerate the
163 <filename>tags</filename> file, as the
164 <systemitem class="username">root</systemitem> user issue:</para>
[6e11352]165
[2202183]166<screen role="root"><userinput>make -C src installruntime &amp;&amp;
167vim -c ":helptags /usr/share/doc/vim-&vim-version;" -c ":q"</userinput></screen>
[6e11352]168
[0ec75653]169 </sect2>
170
171 <sect2 role="commands">
172 <title>Command Explanations</title>
173
[32d0e29]174 <para><command>patch &hellip;</command>: These patches are the same as the
[8ae8a12a]175 ones in the LFS build used to update the package with upstream patches
[32d0e29]176 and ensure the man pages are placed in the proper locations.</para>
[e26dfbf7]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>
[fd7e0ed6]224
[6e11352]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
[fcb77dd]236<!-- When updating, be sure to change the line below for the proper 'vimxx' unpacked
237 directory -->
[95799899]238 <para>Alternatively you can manually download the *.spl and *.sug files
239 from: <ulink url="ftp://ftp.vim.org/pub/vim/runtime/spell/"/> and save
240 them to <filename class="directory"> ~/.vim/spell </filename> or in
[fcb77dd]241 <filename class="directory">/usr/share/vim/vim72/spell/</filename>.</para>
[864b24de]242
[6e11352]243 <para>To find out what's new in <application>Vim-&vim-version;</application>
244 issue the following command:</para>
[95799899]245
[6e11352]246<screen><literal>:help version-&vim-version;</literal></screen>
[95799899]247
248 <para>For additional information on setting up
249 <application>Vim</application> configuration files, see <xref
250 linkend="postlfs-config-vimrc"/> and <ulink
[6e11352]251 url='http://www.vi-improved.org/vimrc.php'/>.</para>
[95799899]252
253 </sect3>
254
[0ec75653]255 </sect2>
256
257 <sect2 role="content">
258 <title>Contents</title>
259
[3aa07d1]260 <para>A list of the reinstalled files, along with their short
[95799899]261 descriptions can be found in the <ulink
[864b24de]262 url="&lfs-root;/chapter06/vim.html#contents-vim">LFS Vim Installation
[98078a63]263 Instructions</ulink></para>
[0ec75653]264
265 <segmentedlist>
266 <segtitle>Installed Programs</segtitle>
267 <segtitle>Installed Libraries</segtitle>
268 <segtitle>Installed Directory</segtitle>
269
270 <seglistitem>
271 <seg>gview, gvim, gvimdiff, rgview, and rgvim</seg>
272 <seg>None</seg>
273 <seg>/usr/share/vim</seg>
274 </seglistitem>
275 </segmentedlist>
276
277 <variablelist>
278 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
279 <?dbfo list-presentation="list"?>
280 <?dbhtml list-presentation="table"?>
281
282 <varlistentry id="gview">
283 <term><command>gview</command></term>
284 <listitem>
285 <para>starts <command>gvim</command> in read-only mode.</para>
286 <indexterm zone="vim gview">
287 <primary sortas="b-gview">gview</primary>
288 </indexterm>
289 </listitem>
290 </varlistentry>
291
292 <varlistentry id="gvim">
293 <term><command>gvim</command></term>
294 <listitem>
[d612b9f]295 <para>is the editor that runs under <application>X</application>
[13679edb]296 and includes a GUI.</para>
[0ec75653]297 <indexterm zone="vim gvim">
298 <primary sortas="b-gvim">gvim</primary>
299 </indexterm>
300 </listitem>
301 </varlistentry>
302
303 <varlistentry id="gvimdiff">
304 <term><command>gvimdiff</command></term>
305 <listitem>
306 <para>edits two or three versions of a file with
[13679edb]307 <command>gvim</command> and shows the differences.</para>
[0ec75653]308 <indexterm zone="vim gvimdiff">
309 <primary sortas="b-gvimdiff">gvimdiff</primary>
310 </indexterm>
311 </listitem>
312 </varlistentry>
313
314 <varlistentry id="rgview">
315 <term><command>rgview</command></term>
316 <listitem>
317 <para>is a restricted version of <command>gview</command>.</para>
318 <indexterm zone="vim rgview">
319 <primary sortas="b-rgview">rgview</primary>
320 </indexterm>
321 </listitem>
322 </varlistentry>
323
324 <varlistentry id="rgvim">
325 <term><command>rgvim</command></term>
326 <listitem>
327 <para>is a restricted version of <command>gvim</command>. </para>
328 <indexterm zone="vim gvim">
329 <primary sortas="b-gvim">gvim</primary>
330 </indexterm>
331 </listitem>
332 </varlistentry>
333
334 </variablelist>
335
336 </sect2>
[f45b1953]337
338</sect1>
Note: See TracBrowser for help on using the repository browser.