source: postlfs/editors/vim.xml@ 28badf4

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 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 28badf4 was 28badf4, checked in by Larry Lawrence <larry@…>, 19 years ago

reformat vim

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

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