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