2004-06-11 14:33:09 +08:00
|
|
|
<?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">
|
2004-06-18 06:08:59 +08:00
|
|
|
<!ENTITY vim-size "3.7 MB">
|
|
|
|
<!ENTITY vim-buildsize "48 MB">
|
2004-06-11 14:33:09 +08:00
|
|
|
<!ENTITY vim-time "0.59 SBU">
|
|
|
|
]>
|
|
|
|
|
2003-09-27 02:58:36 +08:00
|
|
|
<sect1 id="postlfs-editors-vim" xreflabel="Vim-&vim-version;">
|
2004-08-10 12:23:09 +08:00
|
|
|
<sect1info>
|
2004-08-10 12:25:57 +08:00
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
2004-08-10 12:23:09 +08:00
|
|
|
</sect1info>
|
2004-05-07 04:30:53 +08:00
|
|
|
<?dbhtml filename="vim.html"?>
|
2003-09-27 02:58:36 +08:00
|
|
|
<title>Vim-&vim-version;</title>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2004-06-18 06:08:59 +08:00
|
|
|
<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>
|
|
|
|
|
2004-06-11 14:33:09 +08:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of <application>Vim</application></title>
|
|
|
|
|
|
|
|
<note><para>If you recompile vim to link against <application>X</application>,
|
2004-06-18 06:08:59 +08:00
|
|
|
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>
|
2004-06-11 14:33:09 +08:00
|
|
|
|
|
|
|
<para>Install <application>Vim</application> by running the following commands:</para>
|
|
|
|
|
|
|
|
<screen><userinput><command>echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h &&
|
|
|
|
echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' >> src/feature.h &&
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--with-features=huge &&
|
|
|
|
make &&
|
|
|
|
make install</command></userinput></screen>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2>
|
|
|
|
<title>Command explanations</title>
|
|
|
|
|
2004-06-18 06:08:59 +08:00
|
|
|
<para><parameter>--with-features=huge</parameter>: This switch enables all
|
|
|
|
the additional features available in <application>Vim</application>.</para>
|
2004-06-11 14:33:09 +08:00
|
|
|
|
2004-06-18 06:08:59 +08:00
|
|
|
<para><parameter>--enable-gui=no</parameter>: If you prefer not to link
|
|
|
|
<application>Vim</application> against <application>X</application>, use
|
2004-06-11 14:33:09 +08:00
|
|
|
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
|
2004-06-18 06:08:59 +08:00
|
|
|
<command>vim</command> commands and <command>xxd</command> is a command used
|
|
|
|
to create hex dumps.</para>
|
2004-06-11 14:33:09 +08:00
|
|
|
|
|
|
|
</sect2>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
|
|
|
</sect1>
|