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">
|
---|
9 | <!ENTITY vim-size "3.7 MB">
|
---|
10 | <!ENTITY vim-buildsize "48 MB">
|
---|
11 | <!ENTITY vim-time "0.59 SBU">
|
---|
12 | ]>
|
---|
13 |
|
---|
14 | <sect1 id="postlfs-editors-vim" xreflabel="Vim-&vim-version;">
|
---|
15 | <?dbhtml filename="vim.html"?>
|
---|
16 | <title>Vim-&vim-version;</title>
|
---|
17 |
|
---|
18 | <sect2>
|
---|
19 | <title>Introduction to <application>Vim</application></title>
|
---|
20 |
|
---|
21 | <para>The <application>Vim</application> package, which is an
|
---|
22 | abbreviation for VI IMproved, contains a <command>vi</command>
|
---|
23 | clone with extra features as compared to the original
|
---|
24 | <command>vi</command>.</para>
|
---|
25 |
|
---|
26 | <para>The default <acronym>LFS</acronym> instructions install
|
---|
27 | <application>vim</application> as a part of the base system.
|
---|
28 | If you would prefer to link <application>vim</application>
|
---|
29 | against <application>X</application>, you should recompile
|
---|
30 | <application>vim</application> to enable <acronym>GUI</acronym>
|
---|
31 | mode. There is no need for special instructions since
|
---|
32 | <application>X</application> support is automatically detected.
|
---|
33 | </para>
|
---|
34 |
|
---|
35 | <sect3><title>Package information</title>
|
---|
36 | <itemizedlist spacing='compact'>
|
---|
37 | <listitem><para>Download (HTTP): <ulink
|
---|
38 | url="&vim-download-http;"/></para></listitem>
|
---|
39 | <listitem><para>Download (FTP): <ulink
|
---|
40 | url="&vim-download-ftp;"/></para></listitem>
|
---|
41 | <listitem><para>Download size: &vim-size;</para></listitem>
|
---|
42 | <listitem><para>Estimated Disk space required:
|
---|
43 | &vim-buildsize;</para></listitem>
|
---|
44 | <listitem><para>Estimated build time:
|
---|
45 | &vim-time;</para></listitem></itemizedlist>
|
---|
46 | </sect3>
|
---|
47 |
|
---|
48 | <sect3><title><application>Vim</application> dependencies</title>
|
---|
49 | <sect4><title>Recommended</title>
|
---|
50 | <para><application>X</application>
|
---|
51 | (<xref linkend="xfree86"/> or <xref linkend="xorg"/>)</para>
|
---|
52 | </sect4>
|
---|
53 |
|
---|
54 | <sect4><title>Optional</title>
|
---|
55 | <para><xref linkend="GTK2"/>,
|
---|
56 | <xref linkend="lesstif"/>,
|
---|
57 | <xref linkend="Python"/>,
|
---|
58 | <xref linkend="tcl"/>,
|
---|
59 | <xref linkend="ruby"/>
|
---|
60 | and <xref linkend="gpm"/>
|
---|
61 | </para></sect4>
|
---|
62 | </sect3>
|
---|
63 |
|
---|
64 | </sect2>
|
---|
65 |
|
---|
66 | <sect2>
|
---|
67 | <title>Installation of <application>Vim</application></title>
|
---|
68 |
|
---|
69 | <note><para>If you recompile vim to link against <application>X</application>,
|
---|
70 | and your <application>X</application> libs are not on the root partition, you
|
---|
71 | will no longer have an editor for use in emergencies. You may choose to
|
---|
72 | install an additional editor, not link vim against X, or move the current
|
---|
73 | <command>vim</command> executable to the <filename>/bin</filename> directory
|
---|
74 | under a different name such as <filename>vi</filename>.</para></note>
|
---|
75 |
|
---|
76 | <para>Install <application>Vim</application> by running the following commands:</para>
|
---|
77 |
|
---|
78 | <screen><userinput><command>echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h &&
|
---|
79 | echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' >> src/feature.h &&
|
---|
80 | ./configure --prefix=/usr \
|
---|
81 | --with-features=huge &&
|
---|
82 | make &&
|
---|
83 | make install</command></userinput></screen>
|
---|
84 |
|
---|
85 | </sect2>
|
---|
86 |
|
---|
87 | <sect2>
|
---|
88 | <title>Command explanations</title>
|
---|
89 |
|
---|
90 | <para><parameter>--with-features=huge</parameter>: This switch enables all
|
---|
91 | the additional features available in <application>Vim</application>.</para>
|
---|
92 |
|
---|
93 | <para><parameter>--enable-gui=no</parameter>: If you prefer not to link
|
---|
94 | <application>Vim</application> against <application>X</application>, use
|
---|
95 | this switch.</para>
|
---|
96 |
|
---|
97 | </sect2>
|
---|
98 |
|
---|
99 | <sect2>
|
---|
100 | <title>Contents</title>
|
---|
101 |
|
---|
102 | <para>The <application>Vim</application> package contains
|
---|
103 | <command>eview</command>, <command>evim</command>,
|
---|
104 | <command>ex</command>, <command>gview</command>,
|
---|
105 | <command>gvim</command>, <command>gvimdiff</command>,
|
---|
106 | <command>rgview</command>, <command>rgvim</command>,
|
---|
107 | <command>rview</command>, <command>rvim</command>,
|
---|
108 | <command>view</command>, <command>vim</command>,
|
---|
109 | <command>vimdiff</command>, <command>vimtutor</command> and
|
---|
110 | <command>xxd</command>. Except for <command>vimtutor</command> and
|
---|
111 | <command>xxd</command>, all the other commands are symlinks to
|
---|
112 | <command>vim</command> and start <command>vim</command> with different
|
---|
113 | options. <command>vimtutor</command> is a tool to learn the various
|
---|
114 | <command>vim</command> commands and <command>xxd</command> is a command used
|
---|
115 | to create hex dumps.</para>
|
---|
116 |
|
---|
117 | </sect2>
|
---|
118 |
|
---|
119 | </sect1>
|
---|