source: BOOK/temp-system/common/vim.xml@ 8000b26

clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 8000b26 was f3f8518, checked in by William Harrington <kb0iic@…>, 11 years ago

Uncomment vim branch update entries in xml.

  • Property mode set to 100644
File size: 3.5 KB
Line 
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
18 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
19 href="../../final-system/common/vim.xml"
20 xpointer="xpointer(//*[@role='package'])"/>
21
22 <sect2 role="installation">
23 <title>Installation of VIM</title>
24
25 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
26 href="../../final-system/common/vim.xml"
27 xpointer="xpointer(//*[@os='p1'])"/>
28
29 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
30 href="../../final-system/common/vim.xml"
31 xpointer="xpointer(//*[@os='p2'])"/>
32
33 <para os="c1">The <command>configure</command> script is full of logic
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>
37
38<screen os="c2"><userinput>cat &gt; src/auto/config.cache &lt;&lt; "EOF"
39vim_cv_getcwd_broken=no
40vim_cv_memmove_handles_overlap=yes
41vim_cv_stat_ignores_slash=no
42vim_cv_terminfo=yes
43vim_cv_toupper_broken=no
44vim_cv_tty_group=world
45EOF</userinput></screen>
46
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>
50
51<screen os="c"><userinput>echo '#define SYS_VIMRC_FILE "/tools/etc/vimrc"' &gt;&gt; src/feature.h</userinput></screen>
52
53 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
54 href="../../final-system/common/vim.xml"
55 xpointer="xpointer(//*[@os='d'])"/>
56
57<screen os="e"><userinput>./configure \
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>
63
64 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
65 href="../../final-system/common/vim.xml"
66 xpointer="xpointer(//*[@os='g'])"/>
67
68 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
69 href="../../final-system/common/vim.xml"
70 xpointer="xpointer(//*[@os='h'])"/>
71
72 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
73 href="../../final-system/common/vim.xml"
74 xpointer="xpointer(//*[@os='j'])"/>
75
76 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
77 href="../../final-system/common/vim.xml"
78 xpointer="xpointer(//*[@os='k'])"/>
79
80 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
81 href="../../final-system/common/vim.xml"
82 xpointer="xpointer(//*[@os='l'])"/>
83
84<screen os="m"><userinput>ln -sv vim /tools/bin/vi</userinput></screen>
85
86 <para os="tv1" >Create a temporary vimrc to make it function more the way you may
87 expect it to. This is explained more in the final system:</para>
88
89<screen os="tv2"><userinput>cat &gt; /tools/etc/vimrc &lt;&lt; "EOF"
90<literal>" Begin /etc/vimrc
91
92set nocompatible
93set backspace=2
94set ruler
95syntax on
96
97" End /etc/vimrc</literal>
98EOF</userinput></screen>
99
100 </sect2>
101
102 <sect2 role="content">
103 <title/>
104
105 <para>Details on this package are located in <xref
106 linkend="contents-vim" role="."/></para>
107
108 </sect2>
109
110</sect1>
Note: See TracBrowser for help on using the repository browser.