source: postlfs/editors/vim.xml@ c638591

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 c638591 was 4716d52, checked in by Andrew Benton <andy@…>, 13 years ago

Removed the python linkend. The python links now point at python2

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