mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-24 23:32:12 +08:00
Tagged vim.xml
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@4190 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
parent
05da1c174e
commit
0ec75653dc
@ -13,180 +13,207 @@
|
||||
]>
|
||||
|
||||
<sect1 id="vim" xreflabel="Vim-&vim-version;">
|
||||
<sect1info>
|
||||
<othername>$LastChangedBy$</othername>
|
||||
<date>$Date$</date>
|
||||
</sect1info>
|
||||
<?dbhtml filename="vim.html"?>
|
||||
<title>Vim-&vim-version;</title>
|
||||
<indexterm zone="vim"><primary
|
||||
sortas="a-Vim">Vim</primary></indexterm>
|
||||
<?dbhtml filename="vim.html"?>
|
||||
|
||||
<sect2>
|
||||
<title>Introduction to <application>Vim</application></title>
|
||||
<sect1info>
|
||||
<othername>$LastChangedBy$</othername>
|
||||
<date>$Date$</date>
|
||||
</sect1info>
|
||||
|
||||
<para>The <application>Vim</application> package, which is an
|
||||
abbreviation for VI IMproved, contains a <command>vi</command>
|
||||
clone with extra features as compared to the original
|
||||
<command>vi</command>.</para>
|
||||
<title>Vim-&vim-version;</title>
|
||||
|
||||
<para>The default <acronym>LFS</acronym> instructions install
|
||||
<application>vim</application> as a part of the base system.
|
||||
If you would prefer to link <application>vim</application>
|
||||
against <application>X</application>, you should recompile
|
||||
<application>vim</application> to enable <acronym>GUI</acronym>
|
||||
mode. There is no need for special instructions since
|
||||
<application>X</application> support is automatically detected.
|
||||
</para>
|
||||
<indexterm zone="vim">
|
||||
<primary sortas="a-Vim">Vim</primary>
|
||||
</indexterm>
|
||||
|
||||
<sect3><title>Package information</title>
|
||||
<itemizedlist spacing='compact'>
|
||||
<listitem><para>Download (HTTP): <ulink
|
||||
url="&vim-download-http;"/></para></listitem>
|
||||
<listitem><para>Download (FTP): <ulink
|
||||
url="&vim-download-ftp;"/></para></listitem>
|
||||
<listitem><para>Download MD5 sum: &vim-md5sum;</para></listitem>
|
||||
<listitem><para>Download size: &vim-size;</para></listitem>
|
||||
<listitem><para>Estimated disk space required:
|
||||
&vim-buildsize;</para></listitem>
|
||||
<listitem><para>Estimated build time:
|
||||
&vim-time;</para></listitem></itemizedlist>
|
||||
</sect3>
|
||||
<sect2 role="package">
|
||||
<title>Introduction to Vim</title>
|
||||
|
||||
<sect3><title>Additional downloads</title>
|
||||
<itemizedlist spacing='compact'>
|
||||
<listitem><para>Required patch: <ulink
|
||||
url="&patch-root;/vim-&vim-version;-security_fix-1.patch"/></para>
|
||||
</listitem>
|
||||
<listitem><para>Translated Vim messages: <ulink
|
||||
url="http://ftp.at.vim.org/pub/vim/extra/vim-&vim-version;-lang.tar.gz"/>
|
||||
</para></listitem>
|
||||
</itemizedlist></sect3>
|
||||
<para>The <application>Vim</application> package, which is an
|
||||
abbreviation for VI IMproved, contains a <command>vi</command>
|
||||
clone with extra features as compared to the original
|
||||
<command>vi</command>.</para>
|
||||
|
||||
<sect3><title><application>Vim</application> dependencies</title>
|
||||
<sect4><title>Recommended</title>
|
||||
<para><application>X</application>
|
||||
(<xref linkend="xfree86"/> or <xref linkend="xorg"/>)</para>
|
||||
</sect4>
|
||||
<para>The default LFS instructions install <application>vim</application>
|
||||
as a part of the base system. If you would prefer to link
|
||||
<application>vim</application> against <application>X</application>,
|
||||
you should recompile <application>vim</application> to enable GUI mode.
|
||||
There is no need for special instructions since
|
||||
<application>X</application> support is automatically detected.</para>
|
||||
|
||||
<sect4><title>Optional</title>
|
||||
<para><xref linkend="gtk2"/>,
|
||||
<xref linkend="lesstif"/>,
|
||||
<xref linkend="python"/>,
|
||||
<xref linkend="tcl"/>,
|
||||
<xref linkend="ruby"/>
|
||||
and <xref linkend="gpm"/>
|
||||
</para>
|
||||
</sect4>
|
||||
</sect3>
|
||||
<bridgehead renderas="sect3">Package Information</bridgehead>
|
||||
<itemizedlist spacing="compact">
|
||||
<listitem>
|
||||
<para>Download (HTTP): <ulink url="&vim-download-http;"/></para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Download (FTP): <ulink url="&vim-download-ftp;"/></para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Download MD5 sum: &vim-md5sum;</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Download size: &vim-size;</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Estimated disk space required: &vim-buildsize;</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Estimated build time: &vim-time;</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
</sect2>
|
||||
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
||||
<itemizedlist spacing='compact'>
|
||||
<listitem>
|
||||
<para>Required patch: <ulink
|
||||
url="&patch-root;/vim-&vim-version;-security_fix-1.patch"/></para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Translated Vim messages: <ulink
|
||||
url="http://ftp.at.vim.org/pub/vim/extra/vim-&vim-version;-lang.tar.gz"/>
|
||||
</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<sect2>
|
||||
<title>Installation of <application>Vim</application></title>
|
||||
<bridgehead renderas="sect3">TEMPLATE Dependencies</bridgehead>
|
||||
|
||||
<note><para>If you recompile vim to link against <application>X</application>,
|
||||
and your <application>X</application> libs are not on the root partition, you
|
||||
will no longer have an editor for use in emergencies. You may choose to
|
||||
install an additional editor, not link vim against X, or move the current
|
||||
<command>vim</command> executable to the <filename>/bin</filename> directory
|
||||
under a different name such as <filename>vi</filename>.</para></note>
|
||||
<bridgehead renderas="sect4">Recommended</bridgehead>
|
||||
<para>X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>)</para>
|
||||
|
||||
<para>If desired, unpack the translated messages archive:</para>
|
||||
<bridgehead renderas="sect4">Optional</bridgehead>
|
||||
<para><xref linkend="gtk2"/>,
|
||||
<xref linkend="lesstif"/>,
|
||||
<xref linkend="python"/>,
|
||||
<xref linkend="tcl"/>,
|
||||
<xref linkend="ruby"/>
|
||||
and <xref linkend="gpm"/></para>
|
||||
|
||||
<screen><userinput><command>tar -zxf ../vim-&vim-version;-lang.tar.gz --strip-components=1</command></userinput></screen>
|
||||
</sect2>
|
||||
|
||||
<sect2 role="installation">
|
||||
<title>Installation of Vim</title>
|
||||
|
||||
<note>
|
||||
<para>If you recompile <application>Vim</application> to link against
|
||||
<application>X</application>, and your <application>X</application>
|
||||
libs are not on the root partition, you will no longer have an editor
|
||||
for use in emergencies. You may choose to install an additional editor,
|
||||
not link <application>Vim</application> against
|
||||
<application>X</application>, or move the current <command>vim</command>
|
||||
executable to the <filename class="directory">/bin</filename> directory
|
||||
under a different name such as <filename>vi</filename>.</para>
|
||||
</note>
|
||||
|
||||
<para>If desired, unpack the translated messages archive:</para>
|
||||
|
||||
<screen><userinput>tar -zxf ../vim-&vim-version;-lang.tar.gz --strip-components=1</userinput></screen>
|
||||
|
||||
<para>Install <application>Vim</application> by running the following
|
||||
commands:</para>
|
||||
<para>Install <application>Vim</application> by running the following
|
||||
commands:</para>
|
||||
|
||||
<screen><userinput><command>echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h &&
|
||||
<screen><userinput>echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h &&
|
||||
echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' >> src/feature.h &&
|
||||
patch -Np1 -i ../vim-&vim-version;-security_fix-1.patch &&
|
||||
./configure --prefix=/usr --with-features=huge &&
|
||||
make</command></userinput></screen>
|
||||
make</userinput></screen>
|
||||
|
||||
<para>Now, as the root user:</para>
|
||||
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
||||
|
||||
<screen><userinput role='root'><command>make install</command></userinput></screen>
|
||||
<screen role="root"><userinput>make install</userinput></screen>
|
||||
|
||||
</sect2>
|
||||
</sect2>
|
||||
|
||||
<sect2>
|
||||
<title>Command explanations</title>
|
||||
<sect2 role="commands">
|
||||
<title>Command Explanations</title>
|
||||
|
||||
<para><parameter>--with-features=huge</parameter>: This switch enables all
|
||||
the additional features available in <application>Vim</application>.</para>
|
||||
<para><parameter>--with-features=huge</parameter>: This switch enables all
|
||||
the additional features available in <application>Vim</application>.</para>
|
||||
|
||||
<para><option>--enable-gui=no</option>: If you prefer not to link
|
||||
<application>Vim</application> against <application>X</application>, use
|
||||
this switch.</para>
|
||||
<para><option>--enable-gui=no</option>: If you prefer not to link
|
||||
<application>Vim</application> against <application>X</application>, use
|
||||
this switch.</para>
|
||||
|
||||
</sect2>
|
||||
</sect2>
|
||||
|
||||
<sect2>
|
||||
<title>Contents</title>
|
||||
<sect2 role="content">
|
||||
<title>Contents</title>
|
||||
|
||||
<para>A list of the reinstalled files, along with their short descriptions can
|
||||
be found at <ulink url="&lfs-root;/chapter06/vim.html#contents-vim"/>.</para>
|
||||
<para>A list of the reinstalled files, along with their short
|
||||
descriptions can be found at <ulink
|
||||
url="&lfs-root;/chapter06/vim.html#contents-vim"/>.</para>
|
||||
|
||||
<segmentedlist>
|
||||
<segtitle>Installed Programs</segtitle>
|
||||
<segtitle>Installed Libraries</segtitle>
|
||||
<segtitle>Installed Directory</segtitle>
|
||||
<seglistitem>
|
||||
<seg>gview, gvim, gvimdiff, rgview, rgvim</seg>
|
||||
<seg>None</seg>
|
||||
<seg>/usr/share/vim</seg>
|
||||
</seglistitem>
|
||||
</segmentedlist>
|
||||
<segmentedlist>
|
||||
<segtitle>Installed Programs</segtitle>
|
||||
<segtitle>Installed Libraries</segtitle>
|
||||
<segtitle>Installed Directory</segtitle>
|
||||
|
||||
<variablelist>
|
||||
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
||||
<?dbfo list-presentation="list"?>
|
||||
<seglistitem>
|
||||
<seg>gview, gvim, gvimdiff, rgview, and rgvim</seg>
|
||||
<seg>None</seg>
|
||||
<seg>/usr/share/vim</seg>
|
||||
</seglistitem>
|
||||
</segmentedlist>
|
||||
|
||||
<varlistentry id="gview">
|
||||
<term><filename>gview</filename></term>
|
||||
<listitem><para>starts <command>gvim</command> in read-only mode.</para>
|
||||
<indexterm zone="vim gview">
|
||||
<primary sortas="b-gview">gview</primary></indexterm>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<variablelist>
|
||||
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
||||
<?dbfo list-presentation="list"?>
|
||||
<?dbhtml list-presentation="table"?>
|
||||
|
||||
<varlistentry id="gvim">
|
||||
<term><filename>gvim</filename></term>
|
||||
<listitem><para>is the editor that runs under X and includes a <acronym>GUI</acronym></para>
|
||||
<indexterm zone="vim gvim">
|
||||
<primary sortas="b-gvim">gvim</primary></indexterm>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry id="gview">
|
||||
<term><command>gview</command></term>
|
||||
<listitem>
|
||||
<para>starts <command>gvim</command> in read-only mode.</para>
|
||||
<indexterm zone="vim gview">
|
||||
<primary sortas="b-gview">gview</primary>
|
||||
</indexterm>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry id="gvimdiff">
|
||||
<term><filename>gvimdiff</filename></term>
|
||||
<listitem><para>edits two or three versions of a file with
|
||||
<command>gvim</command> and show differences.</para>
|
||||
<indexterm zone="vim gvimdiff">
|
||||
<primary sortas="b-gvimdiff">gvimdiff</primary></indexterm>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry id="gvim">
|
||||
<term><command>gvim</command></term>
|
||||
<listitem>
|
||||
<para>is the editor that runs under <application>X</application>
|
||||
and includes a GUI</para>
|
||||
<indexterm zone="vim gvim">
|
||||
<primary sortas="b-gvim">gvim</primary>
|
||||
</indexterm>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry id="rgview">
|
||||
<term><filename>rgview</filename></term>
|
||||
<listitem><para>is a restricted version of <command>gview</command>.</para>
|
||||
<indexterm zone="vim rgview">
|
||||
<primary sortas="b-rgview">rgview</primary></indexterm>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry id="gvimdiff">
|
||||
<term><command>gvimdiff</command></term>
|
||||
<listitem>
|
||||
<para>edits two or three versions of a file with
|
||||
<command>gvim</command> and show differences.</para>
|
||||
<indexterm zone="vim gvimdiff">
|
||||
<primary sortas="b-gvimdiff">gvimdiff</primary>
|
||||
</indexterm>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry id="rgvim">
|
||||
<term><filename>rgvim</filename></term>
|
||||
<listitem><para>is a restricted version of <command>gvim</command>. </para>
|
||||
<indexterm zone="vim gvim">
|
||||
<primary sortas="b-gvim">gvim</primary></indexterm>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry id="rgview">
|
||||
<term><command>rgview</command></term>
|
||||
<listitem>
|
||||
<para>is a restricted version of <command>gview</command>.</para>
|
||||
<indexterm zone="vim rgview">
|
||||
<primary sortas="b-rgview">rgview</primary>
|
||||
</indexterm>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
</variablelist>
|
||||
<varlistentry id="rgvim">
|
||||
<term><command>rgvim</command></term>
|
||||
<listitem>
|
||||
<para>is a restricted version of <command>gvim</command>. </para>
|
||||
<indexterm zone="vim gvim">
|
||||
<primary sortas="b-gvim">gvim</primary>
|
||||
</indexterm>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
</sect2>
|
||||
</variablelist>
|
||||
|
||||
</sect2>
|
||||
|
||||
</sect1>
|
||||
|
Loading…
Reference in New Issue
Block a user