[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">
|
---|
[70953338] | 9 | <!ENTITY vim-md5sum "774c14d93ce58674b3b2c880edd12d77">
|
---|
| 10 | <!ENTITY vim-size "3.6 MB">
|
---|
| 11 | <!ENTITY vim-buildsize "41 MB">
|
---|
| 12 | <!ENTITY vim-time "0.6 SBU">
|
---|
[b5951ec] | 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>
|
---|
[e19ad480] | 21 | <keywordset>
|
---|
| 22 | <keyword role="package">vim-&vim-version;.tar</keyword>
|
---|
[9084c2eb] | 23 | <keyword role="ftpdir">vim</keyword>
|
---|
[e19ad480] | 24 | </keywordset>
|
---|
[0ec75653] | 25 | </sect1info>
|
---|
| 26 |
|
---|
| 27 | <title>Vim-&vim-version;</title>
|
---|
| 28 |
|
---|
| 29 | <indexterm zone="vim">
|
---|
| 30 | <primary sortas="a-Vim">Vim</primary>
|
---|
| 31 | </indexterm>
|
---|
| 32 |
|
---|
| 33 | <sect2 role="package">
|
---|
| 34 | <title>Introduction to Vim</title>
|
---|
| 35 |
|
---|
| 36 | <para>The <application>Vim</application> package, which is an
|
---|
| 37 | abbreviation for VI IMproved, contains a <command>vi</command>
|
---|
| 38 | clone with extra features as compared to the original
|
---|
| 39 | <command>vi</command>.</para>
|
---|
| 40 |
|
---|
| 41 | <para>The default LFS instructions install <application>vim</application>
|
---|
[3aa07d1] | 42 | as a part of the base system. If you would prefer to link
|
---|
| 43 | <application>vim</application> against <application>X</application>,
|
---|
| 44 | you should recompile <application>vim</application> to enable GUI mode.
|
---|
| 45 | There is no need for special instructions since
|
---|
[0ec75653] | 46 | <application>X</application> support is automatically detected.</para>
|
---|
| 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">Additional Downloads</bridgehead>
|
---|
| 71 | <itemizedlist spacing='compact'>
|
---|
| 72 | <listitem>
|
---|
[3aa07d1] | 73 | <para>Translated Vim messages: <ulink
|
---|
[0ec75653] | 74 | url="http://ftp.at.vim.org/pub/vim/extra/vim-&vim-version;-lang.tar.gz"/>
|
---|
| 75 | </para>
|
---|
| 76 | </listitem>
|
---|
| 77 | </itemizedlist>
|
---|
| 78 |
|
---|
[3493b1f] | 79 | <bridgehead renderas="sect3">Vim Dependencies</bridgehead>
|
---|
[0ec75653] | 80 |
|
---|
| 81 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[e77976f] | 82 | <para role="recommended"><xref linkend="x-window-system"/></para>
|
---|
[0ec75653] | 83 |
|
---|
| 84 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[e19ad480] | 85 | <para role="optional"><xref linkend="gtk2"/>,
|
---|
[3aa07d1] | 86 | <xref linkend="lesstif"/>,
|
---|
| 87 | <xref linkend="python"/>,
|
---|
| 88 | <xref linkend="tcl"/>,
|
---|
[e77976f] | 89 | <xref linkend="ruby"/>, and
|
---|
| 90 | <xref linkend="gpm"/></para>
|
---|
[0ec75653] | 91 |
|
---|
[3597eb6] | 92 | <para condition="html" role="usernotes">User Notes:
|
---|
| 93 | <ulink url="&blfs-wiki;/vim"/></para>
|
---|
| 94 |
|
---|
[0ec75653] | 95 | </sect2>
|
---|
| 96 |
|
---|
| 97 | <sect2 role="installation">
|
---|
| 98 | <title>Installation of Vim</title>
|
---|
| 99 |
|
---|
| 100 | <note>
|
---|
[3aa07d1] | 101 | <para>If you recompile <application>Vim</application> to link against
|
---|
[d612b9f] | 102 | <application>X</application>, and your <application>X</application>
|
---|
[823b1a3] | 103 | libraries are not on the root partition, you will no longer have an editor
|
---|
[3aa07d1] | 104 | for use in emergencies. You may choose to install an additional editor,
|
---|
| 105 | not link <application>Vim</application> against
|
---|
[d612b9f] | 106 | <application>X</application>, or move the current <command>vim</command>
|
---|
[3aa07d1] | 107 | executable to the <filename class="directory">/bin</filename> directory
|
---|
[0ec75653] | 108 | under a different name such as <filename>vi</filename>.</para>
|
---|
| 109 | </note>
|
---|
| 110 |
|
---|
| 111 | <para>If desired, unpack the translated messages archive:</para>
|
---|
| 112 |
|
---|
[8ba8ab5] | 113 | <screen><userinput>tar -xf ../vim-&vim-version;-lang.tar.gz --strip-components=1</userinput></screen>
|
---|
[d612b9f] | 114 |
|
---|
[0ec75653] | 115 | <para>Install <application>Vim</application> by running the following
|
---|
| 116 | commands:</para>
|
---|
[b5951ec] | 117 |
|
---|
[0ec75653] | 118 | <screen><userinput>echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h &&
|
---|
[b5951ec] | 119 | echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' >> src/feature.h &&
|
---|
[8e8356d] | 120 | ./configure --prefix=/usr --with-features=huge &&
|
---|
[0ec75653] | 121 | make</userinput></screen>
|
---|
| 122 |
|
---|
| 123 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 124 |
|
---|
| 125 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 126 |
|
---|
[9f3a70d] | 127 | <para>In UTF-8 locales, the <command>vimtutor</command> program tries to
|
---|
| 128 | convert the tutorials from ISO-8859-1 to UTF-8. Since some tutorials are
|
---|
| 129 | not in ISO-8859-1, the text in them is thus made unreadable. If you
|
---|
| 130 | unpacked the <filename>vim-&vim-version;-lang.tar.gz</filename> archive and
|
---|
| 131 | are going to use a UTF-8 based locale, remove non-ISO-8859-1 tutorials. An
|
---|
| 132 | English tutorial will be used instead.</para>
|
---|
| 133 |
|
---|
| 134 | <screen><userinput>rm -f /usr/share/vim/vim64/tutor/tutor.{gr,pl,ru,sk}
|
---|
| 135 | rm -f /usr/share/vim/vim64/tutor/tutor.??.*</userinput></screen>
|
---|
| 136 |
|
---|
[0ec75653] | 137 | </sect2>
|
---|
| 138 |
|
---|
| 139 | <sect2 role="commands">
|
---|
| 140 | <title>Command Explanations</title>
|
---|
| 141 |
|
---|
[3aa07d1] | 142 | <para><parameter>--with-features=huge</parameter>: This switch enables all
|
---|
[0ec75653] | 143 | the additional features available in <application>Vim</application>.</para>
|
---|
| 144 |
|
---|
[88a2276] | 145 | <para><option>--enable-gui=no</option>: This will prevent compilation of the
|
---|
| 146 | GUI. <application>Vim</application> will still link against
|
---|
| 147 | <application>X</application> so that some nice eye-candy such as updating the
|
---|
| 148 | title bar of an <application>Xterm</application> window are available.</para>
|
---|
| 149 |
|
---|
| 150 | <para><option>--without-x</option>: If you prefer not to link
|
---|
[0ec75653] | 151 | <application>Vim</application> against <application>X</application>, use
|
---|
[88a2276] | 152 | this switch.</para>
|
---|
[0ec75653] | 153 |
|
---|
| 154 | </sect2>
|
---|
| 155 |
|
---|
| 156 | <sect2 role="content">
|
---|
| 157 | <title>Contents</title>
|
---|
| 158 |
|
---|
[3aa07d1] | 159 | <para>A list of the reinstalled files, along with their short
|
---|
| 160 | descriptions can be found at <ulink
|
---|
[0ec75653] | 161 | url="&lfs-root;/chapter06/vim.html#contents-vim"/>.</para>
|
---|
| 162 |
|
---|
| 163 | <segmentedlist>
|
---|
| 164 | <segtitle>Installed Programs</segtitle>
|
---|
| 165 | <segtitle>Installed Libraries</segtitle>
|
---|
| 166 | <segtitle>Installed Directory</segtitle>
|
---|
| 167 |
|
---|
| 168 | <seglistitem>
|
---|
| 169 | <seg>gview, gvim, gvimdiff, rgview, and rgvim</seg>
|
---|
| 170 | <seg>None</seg>
|
---|
| 171 | <seg>/usr/share/vim</seg>
|
---|
| 172 | </seglistitem>
|
---|
| 173 | </segmentedlist>
|
---|
| 174 |
|
---|
| 175 | <variablelist>
|
---|
| 176 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 177 | <?dbfo list-presentation="list"?>
|
---|
| 178 | <?dbhtml list-presentation="table"?>
|
---|
| 179 |
|
---|
| 180 | <varlistentry id="gview">
|
---|
| 181 | <term><command>gview</command></term>
|
---|
| 182 | <listitem>
|
---|
| 183 | <para>starts <command>gvim</command> in read-only mode.</para>
|
---|
| 184 | <indexterm zone="vim gview">
|
---|
| 185 | <primary sortas="b-gview">gview</primary>
|
---|
| 186 | </indexterm>
|
---|
| 187 | </listitem>
|
---|
| 188 | </varlistentry>
|
---|
| 189 |
|
---|
| 190 | <varlistentry id="gvim">
|
---|
| 191 | <term><command>gvim</command></term>
|
---|
| 192 | <listitem>
|
---|
[d612b9f] | 193 | <para>is the editor that runs under <application>X</application>
|
---|
[13679edb] | 194 | and includes a GUI.</para>
|
---|
[0ec75653] | 195 | <indexterm zone="vim gvim">
|
---|
| 196 | <primary sortas="b-gvim">gvim</primary>
|
---|
| 197 | </indexterm>
|
---|
| 198 | </listitem>
|
---|
| 199 | </varlistentry>
|
---|
| 200 |
|
---|
| 201 | <varlistentry id="gvimdiff">
|
---|
| 202 | <term><command>gvimdiff</command></term>
|
---|
| 203 | <listitem>
|
---|
| 204 | <para>edits two or three versions of a file with
|
---|
[13679edb] | 205 | <command>gvim</command> and shows the differences.</para>
|
---|
[0ec75653] | 206 | <indexterm zone="vim gvimdiff">
|
---|
| 207 | <primary sortas="b-gvimdiff">gvimdiff</primary>
|
---|
| 208 | </indexterm>
|
---|
| 209 | </listitem>
|
---|
| 210 | </varlistentry>
|
---|
| 211 |
|
---|
| 212 | <varlistentry id="rgview">
|
---|
| 213 | <term><command>rgview</command></term>
|
---|
| 214 | <listitem>
|
---|
| 215 | <para>is a restricted version of <command>gview</command>.</para>
|
---|
| 216 | <indexterm zone="vim rgview">
|
---|
| 217 | <primary sortas="b-rgview">rgview</primary>
|
---|
| 218 | </indexterm>
|
---|
| 219 | </listitem>
|
---|
| 220 | </varlistentry>
|
---|
| 221 |
|
---|
| 222 | <varlistentry id="rgvim">
|
---|
| 223 | <term><command>rgvim</command></term>
|
---|
| 224 | <listitem>
|
---|
| 225 | <para>is a restricted version of <command>gvim</command>. </para>
|
---|
| 226 | <indexterm zone="vim gvim">
|
---|
| 227 | <primary sortas="b-gvim">gvim</primary>
|
---|
| 228 | </indexterm>
|
---|
| 229 | </listitem>
|
---|
| 230 | </varlistentry>
|
---|
| 231 |
|
---|
| 232 | </variablelist>
|
---|
| 233 |
|
---|
| 234 | </sect2>
|
---|
[f45b1953] | 235 |
|
---|
| 236 | </sect1>
|
---|