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