glfs/postlfs/editors/vim.xml

124 lines
4.4 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY vim-download-http "http://ftp.at.vim.org/pub/vim/unix/vim-&vim-version;.tar.bz2">
<!ENTITY vim-download-ftp "ftp://ftp.vim.org/pub/vim/unix/vim-&vim-version;.tar.bz2">
<!ENTITY vim-size "3.7 MB">
<!ENTITY vim-buildsize "48 MB">
<!ENTITY vim-time "0.59 SBU">
]>
<sect1 id="postlfs-editors-vim" xreflabel="Vim-&vim-version;">
<sect1info>
<othername>$LastChangedBy$</othername>
<date>$Date$</date>
</sect1info>
<?dbhtml filename="vim.html"?>
<title>Vim-&vim-version;</title>
<sect2>
<title>Introduction to <application>Vim</application></title>
<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>
<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>
<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 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>
<sect3><title><application>Vim</application> dependencies</title>
<sect4><title>Recommended</title>
<para><application>X</application>
(<xref linkend="xfree86"/> or <xref linkend="xorg"/>)</para>
</sect4>
<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>
</sect2>
<sect2>
<title>Installation of <application>Vim</application></title>
<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>
<para>Install <application>Vim</application> by running the following commands:</para>
<screen><userinput><command>echo '#define SYS_VIMRC_FILE "/etc/vimrc"' &gt;&gt; src/feature.h &amp;&amp;
echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' &gt;&gt; src/feature.h &amp;&amp;
./configure --prefix=/usr \
--with-features=huge &amp;&amp;
make &amp;&amp;
make install</command></userinput></screen>
</sect2>
<sect2>
<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>--enable-gui=no</parameter>: If you prefer not to link
<application>Vim</application> against <application>X</application>, use
this switch.</para>
</sect2>
<sect2>
<title>Contents</title>
<para>The <application>Vim</application> package contains
<command>eview</command>, <command>evim</command>,
<command>ex</command>, <command>gview</command>,
<command>gvim</command>, <command>gvimdiff</command>,
<command>rgview</command>, <command>rgvim</command>,
<command>rview</command>, <command>rvim</command>,
<command>view</command>, <command>vim</command>,
<command>vimdiff</command>, <command>vimtutor</command> and
<command>xxd</command>. Except for <command>vimtutor</command> and
<command>xxd</command>, all the other commands are symlinks to
<command>vim</command> and start <command>vim</command> with different
options. <command>vimtutor</command> is a tool to learn the various
<command>vim</command> commands and <command>xxd</command> is a command used
to create hex dumps.</para>
</sect2>
</sect1>