source: postlfs/editors/vim.xml@ 83ec6939

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 83ec6939 was 83ec6939, checked in by Fernando de Oliveira <fernando@…>, 9 years ago

Vim-7.4: non-working ftp URL replaced http URL.
Update to stunnel-5.09.

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

  • Property mode set to 100644
File size: 12.4 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-download-http "http://vim.mirror.fr/unix//vim-&vim-version;.tar.bz2">
10 <!ENTITY vim-download-ftp " ">
11 <!ENTITY vim-md5sum "607e135c559be642f210094ad023dc65">
12 <!ENTITY vim-size "9.4 MB">
13 <!ENTITY vim-buildsize "90 MB">
14 <!ENTITY vim-time "1.7 SBU">
15]>
16
17<sect1 id="vim" xreflabel="Vim-&vim-version;">
18 <?dbhtml filename="vim.html"?>
19
20 <sect1info>
21 <othername>$LastChangedBy$</othername>
22 <date>$Date$</date>
23 </sect1info>
24
25 <title>Vim-&vim-version;</title>
26
27 <indexterm zone="vim">
28 <primary sortas="a-Vim">Vim</primary>
29 </indexterm>
30
31 <sect2 role="package">
32 <title>Introduction to Vim</title>
33
34 <para>The <application>Vim</application> package, which is an
35 abbreviation for VI IMproved, contains a <command>vi</command>
36 clone with extra features as compared to the original
37 <command>vi</command>.</para>
38
39 <para>The default LFS instructions install <application>vim</application>
40 as a part of the base system. If you would prefer to link
41 <application>vim</application> against <application>X</application>,
42 you should recompile <application>vim</application> to enable GUI mode.
43 There is no need for special instructions since
44 <application>X</application> support is automatically detected.</para>
45
46 &lfs76_checked;
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">Vim Dependencies</bridgehead>
71
72 <bridgehead renderas="sect4">Recommended</bridgehead>
73 <para role="recommended">
74 <xref linkend="x-window-system"/> and
75 <xref linkend="gtk2"/>
76 </para>
77
78 <bridgehead renderas="sect4">Optional</bridgehead>
79 <para role="optional">
80 <ulink url="http://sourceforge.net/projects/lesstif/">LessTif</ulink>,
81 <xref linkend="python2"/>,
82 <xref linkend="tcl"/>,
83 <xref linkend="ruby"/>, and
84 <xref linkend="gpm"/>
85 </para>
86
87 <para condition="html" role="usernotes">User Notes:
88 <ulink url="&blfs-wiki;/vim"/></para>
89
90 </sect2>
91
92 <sect2 role="installation">
93 <title>Installation of Vim</title>
94
95 <note>
96 <para>If you recompile <application>Vim</application> to link against
97 <application>X</application> and your <application>X</application>
98 libraries are not on the root partition, you will no longer have an editor
99 for use in emergencies. You may choose to install an additional editor,
100 not link <application>Vim</application> against
101 <application>X</application>, or move the current <command>vim</command>
102 executable to the <filename class="directory">/bin</filename> directory
103 under a different name such as <filename>vi</filename>.</para>
104 </note>
105
106 <para>Install <application>Vim</application> by running the following
107 commands:</para>
108
109<screen><userinput>echo '#define SYS_VIMRC_FILE "/etc/vimrc"' &gt;&gt; src/feature.h &amp;&amp;
110echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' &gt;&gt; src/feature.h &amp;&amp;
111./configure --prefix=/usr --with-features=huge &amp;&amp;
112make</userinput></screen>
113
114 <para>To test the results, issue: <command>make test</command>.
115 The <application>vim</application> test suite outputs a lot of binary
116 data to the screen, which can cause issues with the settings of the
117 current terminal. This can be resolved by redirecting the output to a
118 log file. Even if one of the tests fails to produce the file
119 <filename>test.out</filename> in <filename
120 class="directory">src/testdir</filename>, the remaining tests will still
121 be executed. If all goes well,the final message in the log file will be
122 <literal>ALL DONE</literal>. <emphasis>Note</emphasis>: Some color tests
123 expect to be executed under the <command>xterm</command> terminal
124 emulator.</para>
125
126 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
127
128<screen role="root"><userinput>make install</userinput></screen>
129
130 <para>By default, Vim's documentation is installed in <filename
131 class="directory">/usr/share/vim</filename>. The following symlink allows
132 the documentation to be accessed via <filename
133 class="directory">/usr/share/doc/vim-&vim-version;</filename>, making it
134 consistent with the location of documentation for other packages:</para>
135
136<!-- When updating, be sure to change the line below for the proper 'vimxx' unpacked
137 directory -->
138
139<screen role="root"><userinput>ln -snfv ../vim/vim74/doc /usr/share/doc/vim-&vim-version;</userinput></screen>
140
141 <para>If you wish to update the runtime files, issue the
142 following command (requires <xref linkend="rsync"/>):</para>
143
144<screen><userinput>rsync -avzcP --delete --exclude="/dos/" --exclude="/spell/" \
145 ftp.nluug.nl::Vim/runtime/ ./runtime/</userinput></screen>
146
147 <para>To install the runtime files and regenerate the
148 <filename>tags</filename> file, as the
149 <systemitem class="username">root</systemitem> user issue:</para>
150
151<screen role="root"><userinput>make -C src installruntime &amp;&amp;
152vim -c ":helptags /usr/share/doc/vim-&vim-version;" -c ":q"</userinput></screen>
153
154 </sect2>
155
156 <sect2 role="commands">
157 <title>Command Explanations</title>
158
159 <para><parameter>--with-features=huge</parameter>: This switch enables all
160 the additional features available in <application>Vim</application>,
161 including support for multibyte characters.</para>
162
163 <para><option>--enable-gui=no</option>: This will prevent compilation of the
164 GUI. <application>Vim</application> will still link against
165 <application>X</application>, so that some features such as the client-server
166 model or the x11-selection (clipboard) are still available.</para>
167
168 <para><option>--without-x</option>: If you prefer not to link
169 <application>Vim</application> against <application>X</application>, use
170 this switch.</para>
171
172 <para><option>--enable-perlinterp</option>, <option>--enable-pythoninterp</option>,
173 <option>--enable-tclinterp</option>, <option>--enable-rubyinterp</option>:
174 These options include the Perl, Python, Tcl, or Ruby interpreters that allow
175 using other application code in <application>vim</application> scripts.</para>
176
177 </sect2>
178
179 <sect2 role="configuration">
180 <title>Configuring Vim</title>
181
182 <sect3 id='vim-config'>
183 <title>Config Files</title>
184
185 <para><filename>/etc/vimrc</filename> and
186 <filename>~/.vimrc</filename></para>
187
188 <indexterm zone="vim vim-config">
189 <primary sortas="e-etc-vimrc">/etc/vimrc</primary>
190 </indexterm>
191
192 <indexterm zone="vim vim-config">
193 <primary sortas="e-AA.vimrc">~/.vimrc</primary>
194 </indexterm>
195
196 </sect3>
197
198 <sect3 id='vim-desktop'>
199 <title>Desktop File</title>
200
201 <para>
202 If desired, create a menu entry for graphical vim,
203 <filename>gvim.desktop</filename>, as the <systemitem
204 class="username">root</systemitem> user
205 </para>
206
207<screen role="root"><userinput>cat &gt; /usr/share/applications/gvim.desktop &lt;&lt; "EOF"
208<literal>[Desktop Entry]
209Name=GVim Text Editor
210Comment=Edit text files
211Comment[pt_BR]=Edite arquivos de texto
212TryExec=gvim
213Exec=gvim -f %F
214Terminal=false
215Type=Application
216Icon=gvim.png
217Categories=Utility;TextEditor;
218StartupNotify=true
219MimeType=text/plain;</literal>
220EOF</userinput></screen>
221
222 </sect3>
223
224 <sect3 id='vim-init'>
225 <title>Configuration Information</title>
226
227 <para><application>Vim</application> has an integrated spell checker
228 which you can enable it if you issue the following in a vim window:
229 </para>
230
231<screen><literal>:setlocal spell spelllang=ru</literal></screen>
232
233 <para>This setting will enable spell checking for the Russian
234 language for the current session.</para>
235
236 <para>By default, <application>Vim</application> only installs spell
237 files for the English language. If a spell file is not available for
238 a language, then <application>Vim</application> will call the
239 <filename>$VIMRUNTIME/plugin/spellfile.vim</filename> plugin and will try
240 to obtain the *.spl and optionally *.sug from the vim ftp server,
241 by using the <filename>$VIMRUNTIME/plugin/netrwPlugin.vim</filename>
242 plugin.</para>
243
244<!-- When updating, be sure to change the line below for the proper 'vimxx' unpacked
245 directory -->
246 <para>Alternatively you can manually download the *.spl and *.sug files
247 from: <ulink url="ftp://ftp.vim.org/pub/vim/runtime/spell/"/> and save
248 them to <filename class="directory"> ~/.vim/spell </filename> or in
249 <filename class="directory">/usr/share/vim/vim74/spell/</filename>.</para>
250
251 <para>To find out what's new in <application>Vim-&vim-version;</application>
252 issue the following command:</para>
253
254<screen><literal>:help version-&vim-version;</literal></screen>
255
256 <para>For additional information on setting up
257 <application>Vim</application> configuration files, see <xref
258 linkend="postlfs-config-vimrc"/> and <ulink
259 url='http://vim.wikia.com/wiki/Example_vimrc'/>.</para>
260
261 </sect3>
262
263 </sect2>
264
265 <sect2 role="content">
266 <title>Contents</title>
267
268 <para>A list of the reinstalled files, along with their short
269 descriptions can be found in the <ulink
270 url="&lfs-root;/chapter06/vim.html#contents-vim">LFS Vim Installation
271 Instructions</ulink></para>
272
273 <segmentedlist>
274 <segtitle>Installed Programs</segtitle>
275 <segtitle>Installed Libraries</segtitle>
276 <segtitle>Installed Directory</segtitle>
277
278 <seglistitem>
279 <seg>gview, gvim, gvimdiff, rgview, and rgvim</seg>
280 <seg>None</seg>
281 <seg>/usr/share/vim</seg>
282 </seglistitem>
283 </segmentedlist>
284
285 <variablelist>
286 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
287 <?dbfo list-presentation="list"?>
288 <?dbhtml list-presentation="table"?>
289
290 <varlistentry id="gview">
291 <term><command>gview</command></term>
292 <listitem>
293 <para>starts <command>gvim</command> in read-only mode.</para>
294 <indexterm zone="vim gview">
295 <primary sortas="b-gview">gview</primary>
296 </indexterm>
297 </listitem>
298 </varlistentry>
299
300 <varlistentry id="gvim">
301 <term><command>gvim</command></term>
302 <listitem>
303 <para>is the editor that runs under <application>X</application>
304 and includes a GUI.</para>
305 <indexterm zone="vim gvim">
306 <primary sortas="b-gvim">gvim</primary>
307 </indexterm>
308 </listitem>
309 </varlistentry>
310
311 <varlistentry id="gvimdiff">
312 <term><command>gvimdiff</command></term>
313 <listitem>
314 <para>edits two or three versions of a file with
315 <command>gvim</command> and shows the differences.</para>
316 <indexterm zone="vim gvimdiff">
317 <primary sortas="b-gvimdiff">gvimdiff</primary>
318 </indexterm>
319 </listitem>
320 </varlistentry>
321
322 <varlistentry id="rgview">
323 <term><command>rgview</command></term>
324 <listitem>
325 <para>is a restricted version of <command>gview</command>.</para>
326 <indexterm zone="vim rgview">
327 <primary sortas="b-rgview">rgview</primary>
328 </indexterm>
329 </listitem>
330 </varlistentry>
331
332 <varlistentry id="rgvim">
333 <term><command>rgvim</command></term>
334 <listitem>
335 <para>is a restricted version of <command>gvim</command>. </para>
336 <indexterm zone="vim gvim">
337 <primary sortas="b-gvim">gvim</primary>
338 </indexterm>
339 </listitem>
340 </varlistentry>
341
342 </variablelist>
343
344 </sect2>
345
346</sect1>
Note: See TracBrowser for help on using the repository browser.