source: postlfs/editors/vim.xml@ 9f3a70d

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 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 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 9f3a70d was 9f3a70d, checked in by Bruce Dubbs <bdubbs@…>, 18 years ago

Added comments to vim about non-ISO-8859-1 formats. Mirrors LFS comments

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

  • Property mode set to 100644
File size: 8.0 KB
Line 
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 "774c14d93ce58674b3b2c880edd12d77">
10 <!ENTITY vim-size "3.6 MB">
11 <!ENTITY vim-buildsize "41 MB">
12 <!ENTITY vim-time "0.6 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>Translated Vim messages: <ulink
74 url="http://ftp.at.vim.org/pub/vim/extra/vim-&vim-version;-lang.tar.gz"/>
75 </para>
76 </listitem>
77 </itemizedlist>
78
79 <bridgehead renderas="sect3">Vim Dependencies</bridgehead>
80
81 <bridgehead renderas="sect4">Recommended</bridgehead>
82 <para role="recommended"><xref linkend="x-window-system"/></para>
83
84 <bridgehead renderas="sect4">Optional</bridgehead>
85 <para role="optional"><xref linkend="gtk2"/>,
86 <xref linkend="lesstif"/>,
87 <xref linkend="python"/>,
88 <xref linkend="tcl"/>,
89 <xref linkend="ruby"/>, and
90 <xref linkend="gpm"/></para>
91
92 <para condition="html" role="usernotes">User Notes:
93 <ulink url="&blfs-wiki;/vim"/></para>
94
95 </sect2>
96
97 <sect2 role="installation">
98 <title>Installation of Vim</title>
99
100 <note>
101 <para>If you recompile <application>Vim</application> to link against
102 <application>X</application>, and your <application>X</application>
103 libraries are not on the root partition, you will no longer have an editor
104 for use in emergencies. You may choose to install an additional editor,
105 not link <application>Vim</application> against
106 <application>X</application>, or move the current <command>vim</command>
107 executable to the <filename class="directory">/bin</filename> directory
108 under a different name such as <filename>vi</filename>.</para>
109 </note>
110
111 <para>If desired, unpack the translated messages archive:</para>
112
113<screen><userinput>tar -xf ../vim-&vim-version;-lang.tar.gz --strip-components=1</userinput></screen>
114
115 <para>Install <application>Vim</application> by running the following
116 commands:</para>
117
118<screen><userinput>echo '#define SYS_VIMRC_FILE "/etc/vimrc"' &gt;&gt; src/feature.h &amp;&amp;
119echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' &gt;&gt; src/feature.h &amp;&amp;
120./configure --prefix=/usr --with-features=huge &amp;&amp;
121make</userinput></screen>
122
123 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
124
125<screen role="root"><userinput>make install</userinput></screen>
126
127 <para>In UTF-8 locales, the <command>vimtutor</command> program tries to
128 convert the tutorials from ISO-8859-1 to UTF-8. Since some tutorials are
129 not in ISO-8859-1, the text in them is thus made unreadable. If you
130 unpacked the <filename>vim-&vim-version;-lang.tar.gz</filename> archive and
131 are going to use a UTF-8 based locale, remove non-ISO-8859-1 tutorials. An
132 English tutorial will be used instead.</para>
133
134<screen><userinput>rm -f /usr/share/vim/vim64/tutor/tutor.{gr,pl,ru,sk}
135rm -f /usr/share/vim/vim64/tutor/tutor.??.*</userinput></screen>
136
137 </sect2>
138
139 <sect2 role="commands">
140 <title>Command Explanations</title>
141
142 <para><parameter>--with-features=huge</parameter>: This switch enables all
143 the additional features available in <application>Vim</application>.</para>
144
145 <para><option>--enable-gui=no</option>: If you prefer not to link
146 <application>Vim</application> against <application>X</application>, use
147 this switch.</para>
148
149 </sect2>
150
151 <sect2 role="content">
152 <title>Contents</title>
153
154 <para>A list of the reinstalled files, along with their short
155 descriptions can be found at <ulink
156 url="&lfs-root;/chapter06/vim.html#contents-vim"/>.</para>
157
158 <segmentedlist>
159 <segtitle>Installed Programs</segtitle>
160 <segtitle>Installed Libraries</segtitle>
161 <segtitle>Installed Directory</segtitle>
162
163 <seglistitem>
164 <seg>gview, gvim, gvimdiff, rgview, and rgvim</seg>
165 <seg>None</seg>
166 <seg>/usr/share/vim</seg>
167 </seglistitem>
168 </segmentedlist>
169
170 <variablelist>
171 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
172 <?dbfo list-presentation="list"?>
173 <?dbhtml list-presentation="table"?>
174
175 <varlistentry id="gview">
176 <term><command>gview</command></term>
177 <listitem>
178 <para>starts <command>gvim</command> in read-only mode.</para>
179 <indexterm zone="vim gview">
180 <primary sortas="b-gview">gview</primary>
181 </indexterm>
182 </listitem>
183 </varlistentry>
184
185 <varlistentry id="gvim">
186 <term><command>gvim</command></term>
187 <listitem>
188 <para>is the editor that runs under <application>X</application>
189 and includes a GUI.</para>
190 <indexterm zone="vim gvim">
191 <primary sortas="b-gvim">gvim</primary>
192 </indexterm>
193 </listitem>
194 </varlistentry>
195
196 <varlistentry id="gvimdiff">
197 <term><command>gvimdiff</command></term>
198 <listitem>
199 <para>edits two or three versions of a file with
200 <command>gvim</command> and shows the differences.</para>
201 <indexterm zone="vim gvimdiff">
202 <primary sortas="b-gvimdiff">gvimdiff</primary>
203 </indexterm>
204 </listitem>
205 </varlistentry>
206
207 <varlistentry id="rgview">
208 <term><command>rgview</command></term>
209 <listitem>
210 <para>is a restricted version of <command>gview</command>.</para>
211 <indexterm zone="vim rgview">
212 <primary sortas="b-rgview">rgview</primary>
213 </indexterm>
214 </listitem>
215 </varlistentry>
216
217 <varlistentry id="rgvim">
218 <term><command>rgvim</command></term>
219 <listitem>
220 <para>is a restricted version of <command>gvim</command>. </para>
221 <indexterm zone="vim gvim">
222 <primary sortas="b-gvim">gvim</primary>
223 </indexterm>
224 </listitem>
225 </varlistentry>
226
227 </variablelist>
228
229 </sect2>
230
231</sect1>
Note: See TracBrowser for help on using the repository browser.