| [ffbc9152] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
 | 
|---|
 | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
 | 
|---|
 | 3 |   "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
 | 
|---|
 | 4 |   <!ENTITY % general-entities SYSTEM "../../general.ent">
 | 
|---|
 | 5 |   %general-entities;
 | 
|---|
 | 6 | ]>
 | 
|---|
 | 7 | 
 | 
|---|
 | 8 | <sect1 id="ch-temp-system-vim" role="wrap">
 | 
|---|
 | 9 |   <?dbhtml filename="vim.html"?>
 | 
|---|
 | 10 | 
 | 
|---|
 | 11 |   <title>Vim-&vim-version;</title>
 | 
|---|
 | 12 | 
 | 
|---|
 | 13 |   <indexterm zone="ch-temp-system-vim">
 | 
|---|
 | 14 |     <primary sortas="a-Vim">Vim</primary>
 | 
|---|
 | 15 |     <secondary>temporary system</secondary>
 | 
|---|
 | 16 |   </indexterm>
 | 
|---|
 | 17 | 
 | 
|---|
| [dabbced] | 18 |   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
 | 
|---|
| [ffbc9152] | 19 |   href="../../final-system/common/vim.xml"
 | 
|---|
 | 20 |   xpointer="xpointer(//*[@role='package'])"/>
 | 
|---|
 | 21 | 
 | 
|---|
 | 22 |   <sect2 role="installation">
 | 
|---|
 | 23 |     <title>Installation of VIM</title>
 | 
|---|
 | 24 | 
 | 
|---|
| [dabbced] | 25 |     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
 | 
|---|
| [ffbc9152] | 26 |     href="../../final-system/common/vim.xml"
 | 
|---|
 | 27 |     xpointer="xpointer(//*[@os='p1'])"/>
 | 
|---|
 | 28 | 
 | 
|---|
| [dabbced] | 29 |     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
 | 
|---|
| [ffbc9152] | 30 |     href="../../final-system/common/vim.xml"
 | 
|---|
 | 31 |     xpointer="xpointer(//*[@os='p2'])"/>
 | 
|---|
 | 32 | 
 | 
|---|
| [878afd8] | 33 |     <para os="c1">The <command>configure</command> script is full of logic
 | 
|---|
| [58598c1] | 34 |     that aborts at the first sign of cross compiling. Work around this by
 | 
|---|
 | 35 |     setting the cached values of several tests with the following
 | 
|---|
 | 36 |     command:</para>
 | 
|---|
| [ffbc9152] | 37 | 
 | 
|---|
 | 38 | <screen os="c2"><userinput>cat > src/auto/config.cache << "EOF"
 | 
|---|
 | 39 | vim_cv_getcwd_broken=no
 | 
|---|
 | 40 | vim_cv_memmove_handles_overlap=yes
 | 
|---|
 | 41 | vim_cv_stat_ignores_slash=no
 | 
|---|
 | 42 | vim_cv_terminfo=yes
 | 
|---|
 | 43 | vim_cv_toupper_broken=no
 | 
|---|
 | 44 | vim_cv_tty_group=world
 | 
|---|
 | 45 | EOF</userinput></screen>
 | 
|---|
 | 46 | 
 | 
|---|
| [878afd8] | 47 |     <para os="b">Change the default location of
 | 
|---|
 | 48 |     the <filename>vimrc</filename> configuration file to <filename
 | 
|---|
 | 49 |     class="directory">/tools/etc</filename>:</para>
 | 
|---|
| [ffbc9152] | 50 | 
 | 
|---|
 | 51 | <screen os="c"><userinput>echo '#define SYS_VIMRC_FILE "/tools/etc/vimrc"' >> src/feature.h</userinput></screen>
 | 
|---|
 | 52 | 
 | 
|---|
| [dabbced] | 53 |     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
 | 
|---|
| [ffbc9152] | 54 |     href="../../final-system/common/vim.xml"
 | 
|---|
 | 55 |     xpointer="xpointer(//*[@os='d'])"/>
 | 
|---|
 | 56 | 
 | 
|---|
| [6c5a343] | 57 | <screen os="e"><userinput>./configure \
 | 
|---|
| [c3cd569a] | 58 |     --build=${CLFS_HOST} --host=${CLFS_TARGET} \
 | 
|---|
 | 59 |     --prefix=/tools --enable-multibyte --enable-gui=no \
 | 
|---|
 | 60 |     --disable-gtktest --disable-xim --with-features=normal \
 | 
|---|
 | 61 |     --disable-gpm --without-x --disable-netbeans \
 | 
|---|
 | 62 |     --with-tlib=ncurses</userinput></screen>
 | 
|---|
| [ffbc9152] | 63 | 
 | 
|---|
| [05efce1] | 64 |     <variablelist os="f">
 | 
|---|
 | 65 |       <title>The meaning of the new configure options:</title>
 | 
|---|
 | 66 | 
 | 
|---|
 | 67 |       <varlistentry>
 | 
|---|
 | 68 |         <term><parameter>--enable-multibyte</parameter></term>
 | 
|---|
 | 69 |         <listitem>
 | 
|---|
 | 70 |           <para>This optional but highly recommended switch enables support
 | 
|---|
 | 71 |           for editing files in multibyte character encodings. This is needed
 | 
|---|
 | 72 |           if using a locale with a multibyte character set. This switch is
 | 
|---|
 | 73 |           also helpful to be able to edit text files initially created in
 | 
|---|
 | 74 |           Linux distributions like Fedora that use UTF-8 as a default
 | 
|---|
 | 75 |           character set.</para>
 | 
|---|
 | 76 |         </listitem>
 | 
|---|
 | 77 |       </varlistentry>
 | 
|---|
 | 78 | 
 | 
|---|
| [d0ebf86] | 79 |       <varlistentry>
 | 
|---|
 | 80 |         <term><parameter>--enable-gui=no --disable-gtktest --disable-xim --with-features=normal --disable-gpm --without-x --disable-netbeans</parameter></term>
 | 
|---|
 | 81 |         <listitem>
 | 
|---|
 | 82 |           <para>These options prevent Vim from trying to link to libraries
 | 
|---|
 | 83 |           that might be on the host but won't exist inside the temporary
 | 
|---|
 | 84 |           build environment.</para>
 | 
|---|
 | 85 |         </listitem>
 | 
|---|
 | 86 |       </varlistentry>
 | 
|---|
 | 87 | 
 | 
|---|
| [05efce1] | 88 |     </variablelist>
 | 
|---|
 | 89 | 
 | 
|---|
| [dabbced] | 90 |     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
 | 
|---|
| [ffbc9152] | 91 |     href="../../final-system/common/vim.xml"
 | 
|---|
 | 92 |     xpointer="xpointer(//*[@os='g'])"/>
 | 
|---|
 | 93 | 
 | 
|---|
| [dabbced] | 94 |     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
 | 
|---|
| [ffbc9152] | 95 |     href="../../final-system/common/vim.xml"
 | 
|---|
 | 96 |     xpointer="xpointer(//*[@os='h'])"/>
 | 
|---|
 | 97 | 
 | 
|---|
| [dabbced] | 98 |     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
 | 
|---|
| [ffbc9152] | 99 |     href="../../final-system/common/vim.xml"
 | 
|---|
 | 100 |     xpointer="xpointer(//*[@os='j'])"/>
 | 
|---|
 | 101 | 
 | 
|---|
| [e6fe94de] | 102 | <screen os="k"><userinput>make install</userinput></screen>
 | 
|---|
| [ffbc9152] | 103 | 
 | 
|---|
| [dabbced] | 104 |     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
 | 
|---|
| [ffbc9152] | 105 |     href="../../final-system/common/vim.xml"
 | 
|---|
 | 106 |     xpointer="xpointer(//*[@os='l'])"/>
 | 
|---|
 | 107 | 
 | 
|---|
 | 108 | <screen os="m"><userinput>ln -sv vim /tools/bin/vi</userinput></screen>
 | 
|---|
 | 109 | 
 | 
|---|
| [0f90f2f] | 110 |     <para os="tv1" >Create a temporary vimrc to make it function more the way you may
 | 
|---|
 | 111 |     expect it to. This is explained more in the final system:</para>
 | 
|---|
 | 112 | 
 | 
|---|
 | 113 | <screen os="tv2"><userinput>cat > /tools/etc/vimrc << "EOF"
 | 
|---|
| [320c461] | 114 | <literal>" Begin /tools/etc/vimrc
 | 
|---|
| [0f90f2f] | 115 | 
 | 
|---|
 | 116 | set nocompatible
 | 
|---|
 | 117 | set backspace=2
 | 
|---|
 | 118 | set ruler
 | 
|---|
 | 119 | syntax on
 | 
|---|
 | 120 | 
 | 
|---|
| [320c461] | 121 | " End /tools/etc/vimrc</literal>
 | 
|---|
| [0f90f2f] | 122 | EOF</userinput></screen>
 | 
|---|
 | 123 | 
 | 
|---|
| [ffbc9152] | 124 |   </sect2>
 | 
|---|
 | 125 | 
 | 
|---|
 | 126 |   <sect2 role="content">
 | 
|---|
 | 127 |     <title/>
 | 
|---|
 | 128 | 
 | 
|---|
 | 129 |     <para>Details on this package are located in <xref
 | 
|---|
 | 130 |     linkend="contents-vim" role="."/></para>
 | 
|---|
 | 131 | 
 | 
|---|
 | 132 |   </sect2>
 | 
|---|
 | 133 | 
 | 
|---|
 | 134 | </sect1>
 | 
|---|