source: postlfs/editors/vim.xml@ f1e6f61d

10.0 10.1 11.0 11.1 11.2 6.0 6.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 krejzi/svn lazarus nosym perl-modules plabs/python-mods qt5new systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/soup3 xry111/test-20220226
Last change on this file since f1e6f61d was f1e6f61d, checked in by Randy McMurchy <randy@…>, 18 years ago

Changed absolute linuxfromscratch URL's to lfs-root entity in Shadow, GCC and VIM instructions

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

  • Property mode set to 100644
File size: 6.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/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 "821fda8f14d674346b87e3ef9cb96389">
10 <!ENTITY vim-size "3.7 MB">
11 <!ENTITY vim-buildsize "48 MB">
12 <!ENTITY vim-time "0.59 SBU">
13]>
14
15<sect1 id="vim" xreflabel="Vim-&vim-version;">
16<sect1info>
17<othername>$LastChangedBy$</othername>
18<date>$Date$</date>
19</sect1info>
20<?dbhtml filename="vim.html"?>
21<title>Vim-&vim-version;</title>
22<indexterm zone="vim"><primary
23sortas="a-Vim">Vim</primary></indexterm>
24
25<sect2>
26<title>Introduction to <application>Vim</application></title>
27
28<para>The <application>Vim</application> package, which is an
29abbreviation for VI IMproved, contains a <command>vi</command>
30clone with extra features as compared to the original
31<command>vi</command>.</para>
32
33<para>The default <acronym>LFS</acronym> instructions install
34<application>vim</application> as a part of the base system.
35If you would prefer to link <application>vim</application>
36against <application>X</application>, you should recompile
37<application>vim</application> to enable <acronym>GUI</acronym>
38mode. There is no need for special instructions since
39<application>X</application> support is automatically detected.
40</para>
41
42<sect3><title>Package information</title>
43<itemizedlist spacing='compact'>
44<listitem><para>Download (HTTP): <ulink
45url="&vim-download-http;"/></para></listitem>
46<listitem><para>Download (FTP): <ulink
47url="&vim-download-ftp;"/></para></listitem>
48<listitem><para>Download MD5 sum: &vim-md5sum;</para></listitem>
49<listitem><para>Download size: &vim-size;</para></listitem>
50<listitem><para>Estimated disk space required:
51&vim-buildsize;</para></listitem>
52<listitem><para>Estimated build time:
53&vim-time;</para></listitem></itemizedlist>
54</sect3>
55
56<sect3><title>Additional downloads</title>
57<itemizedlist spacing='compact'>
58<listitem><para>Translated Vim messages: <ulink
59url="http://ftp.at.vim.org/pub/vim/extra/vim-&vim-version;-lang.tar.gz"/>
60</para></listitem>
61</itemizedlist></sect3>
62
63<sect3><title><application>Vim</application> dependencies</title>
64<sect4><title>Recommended</title>
65<para><application>X</application>
66(<xref linkend="xfree86"/> or <xref linkend="xorg"/>)</para>
67</sect4>
68
69<sect4><title>Optional</title>
70<para><xref linkend="gtk2"/>,
71<xref linkend="lesstif"/>,
72<xref linkend="python"/>,
73<xref linkend="tcl"/>,
74<xref linkend="ruby"/>
75and <xref linkend="gpm"/>
76</para></sect4>
77</sect3>
78
79</sect2>
80
81<sect2>
82<title>Installation of <application>Vim</application></title>
83
84<note><para>If you recompile vim to link against <application>X</application>,
85and your <application>X</application> libs are not on the root partition, you
86will no longer have an editor for use in emergencies. You may choose to
87install an additional editor, not link vim against X, or move the current
88<command>vim</command> executable to the <filename>/bin</filename> directory
89under a different name such as <filename>vi</filename>.</para></note>
90
91<para>If desired unpack the translated messages archive:</para>
92
93<screen><userinput><command>tar -zxf ../vim-&vim-version;-lang.tar.gz --strip-path=1</command></userinput></screen>
94
95<para>Install <application>Vim</application> by running the following
96commands:</para>
97
98<screen><userinput><command>echo '#define SYS_VIMRC_FILE "/etc/vimrc"' &gt;&gt; src/feature.h &amp;&amp;
99echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' &gt;&gt; src/feature.h &amp;&amp;
100./configure --prefix=/usr \
101 --with-features=huge &amp;&amp;
102make</command></userinput></screen>
103
104<para>Now, as the root user:</para>
105
106<screen><userinput role='root'><command>make install</command></userinput></screen>
107
108</sect2>
109
110<sect2>
111<title>Command explanations</title>
112
113<para><parameter>--with-features=huge</parameter>: This switch enables all
114the additional features available in <application>Vim</application>.</para>
115
116<para><option>--enable-gui=no</option>: If you prefer not to link
117<application>Vim</application> against <application>X</application>, use
118this switch.</para>
119
120</sect2>
121
122<sect2>
123<title>Contents</title>
124
125<para>A list of the reinstalled files, along with their short descriptions can
126be found at <ulink url="&lfs-root;/chapter06/vim.html#contents-vim"/>.</para>
127
128<segmentedlist>
129<segtitle>Installed Programs</segtitle>
130<segtitle>Installed Libraries</segtitle>
131<segtitle>Installed Directory</segtitle>
132<seglistitem>
133<seg>gview, gvim, gvimdiff, rgview, rgvim</seg>
134<seg>None</seg>
135<seg>/usr/share/vim</seg>
136</seglistitem>
137</segmentedlist>
138
139<variablelist>
140<bridgehead renderas="sect3">Short Descriptions</bridgehead>
141<?dbfo list-presentation="list"?>
142
143<varlistentry id="gview">
144<term><filename>gview</filename></term>
145<listitem><para>starts <command>gvim</command> in read-only mode.</para>
146<indexterm zone="vim gview">
147<primary sortas="b-gview">gview</primary></indexterm>
148</listitem>
149</varlistentry>
150
151<varlistentry id="gvim">
152<term><filename>gvim</filename></term>
153<listitem><para>is the editor that runs under X and includes a <acronym>GUI</acronym></para>
154<indexterm zone="vim gvim">
155<primary sortas="b-gvim">gvim</primary></indexterm>
156</listitem>
157</varlistentry>
158
159<varlistentry id="gvimdiff">
160<term><filename>gvimdiff</filename></term>
161<listitem><para>edits two or three versions of a file with
162<command>gvim</command> and show differences.</para>
163<indexterm zone="vim gvimdiff">
164<primary sortas="b-gvimdiff">gvimdiff</primary></indexterm>
165</listitem>
166</varlistentry>
167
168<varlistentry id="rgview">
169<term><filename>rgview</filename></term>
170<listitem><para>is a restricted version of <command>gview</command>.</para>
171<indexterm zone="vim rgview">
172<primary sortas="b-rgview">rgview</primary></indexterm>
173</listitem>
174</varlistentry>
175
176<varlistentry id="rgvim">
177<term><filename>rgvim</filename></term>
178<listitem><para>is a restricted version of <command>gvim</command>. </para>
179<indexterm zone="vim gvim">
180<primary sortas="b-gvim">gvim</primary></indexterm>
181</listitem>
182</varlistentry>
183
184</variablelist>
185
186</sect2>
187
188</sect1>
Note: See TracBrowser for help on using the repository browser.