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">
|
|
|
|
<!ENTITY vim-size "3.2 MB">
|
|
|
|
<!ENTITY vim-buildsize "46 MB">
|
|
|
|
<!ENTITY vim-time "0.59 SBU">
|
|
|
|
]>
|
|
|
|
|
2003-09-27 02:58:36 +08:00
|
|
|
<sect1 id="postlfs-editors-vim" xreflabel="Vim-&vim-version;">
|
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-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>,
|
|
|
|
and your X 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"' >> 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>
|
|
|
|
|
|
|
|
<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 vim against X, 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>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
|
|
|
</sect1>
|