source: BOOK/temp-system/common/vim.xml@ 2da399de

clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 2da399de was 7e8d40c, checked in by William Harrington <kb0iic@…>, 11 years ago

Comment out vim branch update patch as there are none at this time.

  • Property mode set to 100644
File size: 3.5 KB
RevLine 
[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
[7e8d40c]25<!-- vim branch update patch area
[dabbced]26 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[ffbc9152]27 href="../../final-system/common/vim.xml"
28 xpointer="xpointer(//*[@os='p1'])"/>
29
[dabbced]30 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[ffbc9152]31 href="../../final-system/common/vim.xml"
32 xpointer="xpointer(//*[@os='p2'])"/>
[7e8d40c]33-->
[ffbc9152]34
[878afd8]35 <para os="c1">The <command>configure</command> script is full of logic
[58598c1]36 that aborts at the first sign of cross compiling. Work around this by
37 setting the cached values of several tests with the following
38 command:</para>
[ffbc9152]39
40<screen os="c2"><userinput>cat &gt; src/auto/config.cache &lt;&lt; "EOF"
41vim_cv_getcwd_broken=no
42vim_cv_memmove_handles_overlap=yes
43vim_cv_stat_ignores_slash=no
44vim_cv_terminfo=yes
45vim_cv_toupper_broken=no
46vim_cv_tty_group=world
47EOF</userinput></screen>
48
[878afd8]49 <para os="b">Change the default location of
50 the <filename>vimrc</filename> configuration file to <filename
51 class="directory">/tools/etc</filename>:</para>
[ffbc9152]52
53<screen os="c"><userinput>echo '#define SYS_VIMRC_FILE "/tools/etc/vimrc"' &gt;&gt; src/feature.h</userinput></screen>
54
[dabbced]55 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[ffbc9152]56 href="../../final-system/common/vim.xml"
57 xpointer="xpointer(//*[@os='d'])"/>
58
[6c5a343]59<screen os="e"><userinput>./configure \
[c3cd569a]60 --build=${CLFS_HOST} --host=${CLFS_TARGET} \
61 --prefix=/tools --enable-multibyte --enable-gui=no \
62 --disable-gtktest --disable-xim --with-features=normal \
63 --disable-gpm --without-x --disable-netbeans \
64 --with-tlib=ncurses</userinput></screen>
[ffbc9152]65
[dabbced]66 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[ffbc9152]67 href="../../final-system/common/vim.xml"
68 xpointer="xpointer(//*[@os='g'])"/>
69
[dabbced]70 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[ffbc9152]71 href="../../final-system/common/vim.xml"
72 xpointer="xpointer(//*[@os='h'])"/>
73
[dabbced]74 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[ffbc9152]75 href="../../final-system/common/vim.xml"
76 xpointer="xpointer(//*[@os='j'])"/>
77
[dabbced]78 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[ffbc9152]79 href="../../final-system/common/vim.xml"
80 xpointer="xpointer(//*[@os='k'])"/>
81
[dabbced]82 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[ffbc9152]83 href="../../final-system/common/vim.xml"
84 xpointer="xpointer(//*[@os='l'])"/>
85
86<screen os="m"><userinput>ln -sv vim /tools/bin/vi</userinput></screen>
87
[0f90f2f]88 <para os="tv1" >Create a temporary vimrc to make it function more the way you may
89 expect it to. This is explained more in the final system:</para>
90
91<screen os="tv2"><userinput>cat &gt; /tools/etc/vimrc &lt;&lt; "EOF"
92<literal>" Begin /etc/vimrc
93
94set nocompatible
95set backspace=2
96set ruler
97syntax on
98
99" End /etc/vimrc</literal>
100EOF</userinput></screen>
101
[ffbc9152]102 </sect2>
103
104 <sect2 role="content">
105 <title/>
106
107 <para>Details on this package are located in <xref
108 linkend="contents-vim" role="."/></para>
109
110 </sect2>
111
112</sect1>
Note: See TracBrowser for help on using the repository browser.