[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;">
|
---|
[0ec75653] | 16 | <?dbhtml filename="vim.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>Vim-&vim-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="vim">
|
---|
| 26 | <primary sortas="a-Vim">Vim</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to Vim</title>
|
---|
| 31 |
|
---|
| 32 | <para>The <application>Vim</application> package, which is an
|
---|
| 33 | abbreviation for VI IMproved, contains a <command>vi</command>
|
---|
| 34 | clone with extra features as compared to the original
|
---|
| 35 | <command>vi</command>.</para>
|
---|
| 36 |
|
---|
| 37 | <para>The default LFS instructions install <application>vim</application>
|
---|
| 38 | as a part of the base system. If you would prefer to link
|
---|
| 39 | <application>vim</application> against <application>X</application>,
|
---|
| 40 | you should recompile <application>vim</application> to enable GUI mode.
|
---|
| 41 | There is no need for special instructions since
|
---|
| 42 | <application>X</application> support is automatically detected.</para>
|
---|
| 43 |
|
---|
| 44 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 45 | <itemizedlist spacing="compact">
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download (HTTP): <ulink url="&vim-download-http;"/></para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Download (FTP): <ulink url="&vim-download-ftp;"/></para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Download MD5 sum: &vim-md5sum;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Download size: &vim-size;</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>Estimated disk space required: &vim-buildsize;</para>
|
---|
| 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
| 62 | <para>Estimated build time: &vim-time;</para>
|
---|
| 63 | </listitem>
|
---|
| 64 | </itemizedlist>
|
---|
| 65 |
|
---|
| 66 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 67 | <itemizedlist spacing='compact'>
|
---|
| 68 | <listitem>
|
---|
| 69 | <para>Required patch: <ulink
|
---|
| 70 | url="&patch-root;/vim-&vim-version;-security_fix-1.patch"/></para>
|
---|
| 71 | </listitem>
|
---|
| 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">TEMPLATE Dependencies</bridgehead>
|
---|
| 80 |
|
---|
| 81 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 82 | <para>X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>)</para>
|
---|
| 83 |
|
---|
| 84 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 85 | <para><xref linkend="gtk2"/>,
|
---|
| 86 | <xref linkend="lesstif"/>,
|
---|
| 87 | <xref linkend="python"/>,
|
---|
| 88 | <xref linkend="tcl"/>,
|
---|
| 89 | <xref linkend="ruby"/>
|
---|
| 90 | and <xref linkend="gpm"/></para>
|
---|
| 91 |
|
---|
| 92 | </sect2>
|
---|
| 93 |
|
---|
| 94 | <sect2 role="installation">
|
---|
| 95 | <title>Installation of Vim</title>
|
---|
| 96 |
|
---|
| 97 | <note>
|
---|
| 98 | <para>If you recompile <application>Vim</application> to link against
|
---|
| 99 | <application>X</application>, and your <application>X</application>
|
---|
| 100 | libs are not on the root partition, you will no longer have an editor
|
---|
| 101 | for use in emergencies. You may choose to install an additional editor,
|
---|
| 102 | not link <application>Vim</application> against
|
---|
| 103 | <application>X</application>, or move the current <command>vim</command>
|
---|
| 104 | executable to the <filename class="directory">/bin</filename> directory
|
---|
| 105 | under a different name such as <filename>vi</filename>.</para>
|
---|
| 106 | </note>
|
---|
| 107 |
|
---|
| 108 | <para>If desired, unpack the translated messages archive:</para>
|
---|
| 109 |
|
---|
| 110 | <screen><userinput>tar -zxf ../vim-&vim-version;-lang.tar.gz --strip-components=1</userinput></screen>
|
---|
[a8f8bdad] | 111 |
|
---|
[0ec75653] | 112 | <para>Install <application>Vim</application> by running the following
|
---|
| 113 | commands:</para>
|
---|
[b5951ec] | 114 |
|
---|
[0ec75653] | 115 | <screen><userinput>echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h &&
|
---|
[b5951ec] | 116 | echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' >> src/feature.h &&
|
---|
[8e8356d] | 117 | patch -Np1 -i ../vim-&vim-version;-security_fix-1.patch &&
|
---|
| 118 | ./configure --prefix=/usr --with-features=huge &&
|
---|
[0ec75653] | 119 | make</userinput></screen>
|
---|
| 120 |
|
---|
| 121 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 122 |
|
---|
| 123 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 124 |
|
---|
| 125 | </sect2>
|
---|
| 126 |
|
---|
| 127 | <sect2 role="commands">
|
---|
| 128 | <title>Command Explanations</title>
|
---|
| 129 |
|
---|
| 130 | <para><parameter>--with-features=huge</parameter>: This switch enables all
|
---|
| 131 | the additional features available in <application>Vim</application>.</para>
|
---|
| 132 |
|
---|
| 133 | <para><option>--enable-gui=no</option>: If you prefer not to link
|
---|
| 134 | <application>Vim</application> against <application>X</application>, use
|
---|
| 135 | this switch.</para>
|
---|
| 136 |
|
---|
| 137 | </sect2>
|
---|
| 138 |
|
---|
| 139 | <sect2 role="content">
|
---|
| 140 | <title>Contents</title>
|
---|
| 141 |
|
---|
| 142 | <para>A list of the reinstalled files, along with their short
|
---|
| 143 | descriptions can be found at <ulink
|
---|
| 144 | url="&lfs-root;/chapter06/vim.html#contents-vim"/>.</para>
|
---|
| 145 |
|
---|
| 146 | <segmentedlist>
|
---|
| 147 | <segtitle>Installed Programs</segtitle>
|
---|
| 148 | <segtitle>Installed Libraries</segtitle>
|
---|
| 149 | <segtitle>Installed Directory</segtitle>
|
---|
| 150 |
|
---|
| 151 | <seglistitem>
|
---|
| 152 | <seg>gview, gvim, gvimdiff, rgview, and rgvim</seg>
|
---|
| 153 | <seg>None</seg>
|
---|
| 154 | <seg>/usr/share/vim</seg>
|
---|
| 155 | </seglistitem>
|
---|
| 156 | </segmentedlist>
|
---|
| 157 |
|
---|
| 158 | <variablelist>
|
---|
| 159 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 160 | <?dbfo list-presentation="list"?>
|
---|
| 161 | <?dbhtml list-presentation="table"?>
|
---|
| 162 |
|
---|
| 163 | <varlistentry id="gview">
|
---|
| 164 | <term><command>gview</command></term>
|
---|
| 165 | <listitem>
|
---|
| 166 | <para>starts <command>gvim</command> in read-only mode.</para>
|
---|
| 167 | <indexterm zone="vim gview">
|
---|
| 168 | <primary sortas="b-gview">gview</primary>
|
---|
| 169 | </indexterm>
|
---|
| 170 | </listitem>
|
---|
| 171 | </varlistentry>
|
---|
| 172 |
|
---|
| 173 | <varlistentry id="gvim">
|
---|
| 174 | <term><command>gvim</command></term>
|
---|
| 175 | <listitem>
|
---|
| 176 | <para>is the editor that runs under <application>X</application>
|
---|
| 177 | and includes a GUI</para>
|
---|
| 178 | <indexterm zone="vim gvim">
|
---|
| 179 | <primary sortas="b-gvim">gvim</primary>
|
---|
| 180 | </indexterm>
|
---|
| 181 | </listitem>
|
---|
| 182 | </varlistentry>
|
---|
| 183 |
|
---|
| 184 | <varlistentry id="gvimdiff">
|
---|
| 185 | <term><command>gvimdiff</command></term>
|
---|
| 186 | <listitem>
|
---|
| 187 | <para>edits two or three versions of a file with
|
---|
| 188 | <command>gvim</command> and show differences.</para>
|
---|
| 189 | <indexterm zone="vim gvimdiff">
|
---|
| 190 | <primary sortas="b-gvimdiff">gvimdiff</primary>
|
---|
| 191 | </indexterm>
|
---|
| 192 | </listitem>
|
---|
| 193 | </varlistentry>
|
---|
| 194 |
|
---|
| 195 | <varlistentry id="rgview">
|
---|
| 196 | <term><command>rgview</command></term>
|
---|
| 197 | <listitem>
|
---|
| 198 | <para>is a restricted version of <command>gview</command>.</para>
|
---|
| 199 | <indexterm zone="vim rgview">
|
---|
| 200 | <primary sortas="b-rgview">rgview</primary>
|
---|
| 201 | </indexterm>
|
---|
| 202 | </listitem>
|
---|
| 203 | </varlistentry>
|
---|
| 204 |
|
---|
| 205 | <varlistentry id="rgvim">
|
---|
| 206 | <term><command>rgvim</command></term>
|
---|
| 207 | <listitem>
|
---|
| 208 | <para>is a restricted version of <command>gvim</command>. </para>
|
---|
| 209 | <indexterm zone="vim gvim">
|
---|
| 210 | <primary sortas="b-gvim">gvim</primary>
|
---|
| 211 | </indexterm>
|
---|
| 212 | </listitem>
|
---|
| 213 | </varlistentry>
|
---|
| 214 |
|
---|
| 215 | </variablelist>
|
---|
| 216 |
|
---|
| 217 | </sect2>
|
---|
[f45b1953] | 218 |
|
---|
| 219 | </sect1>
|
---|