[b5951ec] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY vim-download-http "http://ftp.at.vim.org/pub/vim/unix/vim-&vim-version;.tar.bz2">
|
---|
| 8 | <!ENTITY vim-download-ftp "ftp://ftp.vim.org/pub/vim/unix/vim-&vim-version;.tar.bz2">
|
---|
[9efc5d6] | 9 | <!ENTITY vim-size "3.7 MB">
|
---|
| 10 | <!ENTITY vim-buildsize "48 MB">
|
---|
[b5951ec] | 11 | <!ENTITY vim-time "0.59 SBU">
|
---|
| 12 | ]>
|
---|
| 13 |
|
---|
[79f87f94] | 14 | <sect1 id="postlfs-editors-vim" xreflabel="Vim-&vim-version;">
|
---|
[a0f03b0] | 15 | <sect1info>
|
---|
[5cd0959d] | 16 | <othername>$LastChangedBy$</othername>
|
---|
| 17 | <date>$Date$</date>
|
---|
[a0f03b0] | 18 | </sect1info>
|
---|
[bae6e15] | 19 | <?dbhtml filename="vim.html"?>
|
---|
[79f87f94] | 20 | <title>Vim-&vim-version;</title>
|
---|
[f45b1953] | 21 |
|
---|
[9efc5d6] | 22 | <sect2>
|
---|
| 23 | <title>Introduction to <application>Vim</application></title>
|
---|
| 24 |
|
---|
| 25 | <para>The <application>Vim</application> package, which is an
|
---|
| 26 | abbreviation for VI IMproved, contains a <command>vi</command>
|
---|
| 27 | clone with extra features as compared to the original
|
---|
| 28 | <command>vi</command>.</para>
|
---|
| 29 |
|
---|
| 30 | <para>The default <acronym>LFS</acronym> instructions install
|
---|
| 31 | <application>vim</application> as a part of the base system.
|
---|
| 32 | If you would prefer to link <application>vim</application>
|
---|
| 33 | against <application>X</application>, you should recompile
|
---|
| 34 | <application>vim</application> to enable <acronym>GUI</acronym>
|
---|
| 35 | mode. There is no need for special instructions since
|
---|
| 36 | <application>X</application> support is automatically detected.
|
---|
| 37 | </para>
|
---|
| 38 |
|
---|
| 39 | <sect3><title>Package information</title>
|
---|
| 40 | <itemizedlist spacing='compact'>
|
---|
| 41 | <listitem><para>Download (HTTP): <ulink
|
---|
| 42 | url="&vim-download-http;"/></para></listitem>
|
---|
| 43 | <listitem><para>Download (FTP): <ulink
|
---|
| 44 | url="&vim-download-ftp;"/></para></listitem>
|
---|
| 45 | <listitem><para>Download size: &vim-size;</para></listitem>
|
---|
[a8eba10] | 46 | <listitem><para>Estimated disk space required:
|
---|
[9efc5d6] | 47 | &vim-buildsize;</para></listitem>
|
---|
| 48 | <listitem><para>Estimated build time:
|
---|
| 49 | &vim-time;</para></listitem></itemizedlist>
|
---|
| 50 | </sect3>
|
---|
| 51 |
|
---|
[ad59f9e2] | 52 | <sect3><title>Additional downloads</title>
|
---|
| 53 | <itemizedlist spacing='compact'>
|
---|
[66af3f8] | 54 | <listitem><para>Translated Vim messages: <ulink
|
---|
[a8f8bdad] | 55 | url="http://ftp.at.vim.org/pub/vim/extra/vim-&vim-version;-lang.tar.gz"/>
|
---|
[ad59f9e2] | 56 | </para></listitem>
|
---|
| 57 | </itemizedlist></sect3>
|
---|
| 58 |
|
---|
[9efc5d6] | 59 | <sect3><title><application>Vim</application> dependencies</title>
|
---|
| 60 | <sect4><title>Recommended</title>
|
---|
| 61 | <para><application>X</application>
|
---|
| 62 | (<xref linkend="xfree86"/> or <xref linkend="xorg"/>)</para>
|
---|
| 63 | </sect4>
|
---|
| 64 |
|
---|
| 65 | <sect4><title>Optional</title>
|
---|
[a8eba10] | 66 | <para><xref linkend="gtk2"/>,
|
---|
[9efc5d6] | 67 | <xref linkend="lesstif"/>,
|
---|
[775c349a] | 68 | <xref linkend="python"/>,
|
---|
[9efc5d6] | 69 | <xref linkend="tcl"/>,
|
---|
[35a9977] | 70 | <xref linkend="ruby-package"/>
|
---|
[9efc5d6] | 71 | and <xref linkend="gpm"/>
|
---|
| 72 | </para></sect4>
|
---|
| 73 | </sect3>
|
---|
| 74 |
|
---|
| 75 | </sect2>
|
---|
| 76 |
|
---|
[b5951ec] | 77 | <sect2>
|
---|
| 78 | <title>Installation of <application>Vim</application></title>
|
---|
| 79 |
|
---|
| 80 | <note><para>If you recompile vim to link against <application>X</application>,
|
---|
[9efc5d6] | 81 | and your <application>X</application> libs are not on the root partition, you
|
---|
| 82 | will no longer have an editor for use in emergencies. You may choose to
|
---|
| 83 | install an additional editor, not link vim against X, or move the current
|
---|
| 84 | <command>vim</command> executable to the <filename>/bin</filename> directory
|
---|
| 85 | under a different name such as <filename>vi</filename>.</para></note>
|
---|
[b5951ec] | 86 |
|
---|
[a8f8bdad] | 87 | <para>If desired unpack the translated messages archive:</para>
|
---|
| 88 |
|
---|
| 89 | <screen><userinput><command>tar xzf ../vim-&vim-version;-lang.tar.gz --strip-path=1</command></userinput></screen>
|
---|
| 90 |
|
---|
| 91 | <para>Install <application>Vim</application> by running the following
|
---|
| 92 | commands:</para>
|
---|
[b5951ec] | 93 |
|
---|
| 94 | <screen><userinput><command>echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h &&
|
---|
| 95 | echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' >> src/feature.h &&
|
---|
| 96 | ./configure --prefix=/usr \
|
---|
| 97 | --with-features=huge &&
|
---|
| 98 | make &&
|
---|
| 99 | make install</command></userinput></screen>
|
---|
| 100 |
|
---|
| 101 | </sect2>
|
---|
| 102 |
|
---|
| 103 | <sect2>
|
---|
| 104 | <title>Command explanations</title>
|
---|
| 105 |
|
---|
[9efc5d6] | 106 | <para><parameter>--with-features=huge</parameter>: This switch enables all
|
---|
| 107 | the additional features available in <application>Vim</application>.</para>
|
---|
[b5951ec] | 108 |
|
---|
[9efc5d6] | 109 | <para><parameter>--enable-gui=no</parameter>: If you prefer not to link
|
---|
| 110 | <application>Vim</application> against <application>X</application>, use
|
---|
[b5951ec] | 111 | this switch.</para>
|
---|
| 112 |
|
---|
| 113 | </sect2>
|
---|
| 114 |
|
---|
| 115 | <sect2>
|
---|
| 116 | <title>Contents</title>
|
---|
| 117 |
|
---|
| 118 | <para>The <application>Vim</application> package contains
|
---|
| 119 | <command>eview</command>, <command>evim</command>,
|
---|
| 120 | <command>ex</command>, <command>gview</command>,
|
---|
| 121 | <command>gvim</command>, <command>gvimdiff</command>,
|
---|
| 122 | <command>rgview</command>, <command>rgvim</command>,
|
---|
| 123 | <command>rview</command>, <command>rvim</command>,
|
---|
| 124 | <command>view</command>, <command>vim</command>,
|
---|
| 125 | <command>vimdiff</command>, <command>vimtutor</command> and
|
---|
| 126 | <command>xxd</command>. Except for <command>vimtutor</command> and
|
---|
| 127 | <command>xxd</command>, all the other commands are symlinks to
|
---|
| 128 | <command>vim</command> and start <command>vim</command> with different
|
---|
| 129 | options. <command>vimtutor</command> is a tool to learn the various
|
---|
[9efc5d6] | 130 | <command>vim</command> commands and <command>xxd</command> is a command used
|
---|
| 131 | to create hex dumps.</para>
|
---|
[b5951ec] | 132 |
|
---|
| 133 | </sect2>
|
---|
[f45b1953] | 134 |
|
---|
| 135 | </sect1>
|
---|