source: BOOK/temp-system/common/vim.xml@ 5cbf8bc

clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 5cbf8bc was 0f90f2f, checked in by Joe Ciccone <jciccone@…>, 14 years ago

Create a basic vimrc in the temp system so that puts vim in nocompatible mode.

  • Property mode set to 100644
File size: 3.9 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="s1">The configure script has a single hard coded test that
34 cannot be bypassed with a cache entry. Disable this test with the
35 following command:</para>
36
37<screen os="s2"><userinput>sed -i "/using uint32_t/s/as_fn_error/#&amp;/" src/auto/configure</userinput></screen>
38
39 <para os="c1">The <command>configure</command> script is full of logic
40 that aborts at the first sign of cross compiling. Work around this by
41 setting the cached values of several tests with the following
42 command:</para>
43
44<screen os="c2"><userinput>cat &gt; src/auto/config.cache &lt;&lt; "EOF"
45vim_cv_getcwd_broken=no
46vim_cv_memmove_handles_overlap=yes
47vim_cv_stat_ignores_slash=no
48vim_cv_terminfo=yes
49vim_cv_tgent=zero
50vim_cv_toupper_broken=no
51vim_cv_tty_group=world
52ac_cv_sizeof_int=4
53ac_cv_sizeof_long=4
54ac_cv_sizeof_time_t=4
55ac_cv_sizeof_off_t=4
56EOF</userinput></screen>
57
58 <para os="b">Change the default location of
59 the <filename>vimrc</filename> configuration file to <filename
60 class="directory">/tools/etc</filename>:</para>
61
62<screen os="c"><userinput>echo '#define SYS_VIMRC_FILE "/tools/etc/vimrc"' &gt;&gt; src/feature.h</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='d'])"/>
67
68<screen os="e"><userinput>./configure \
69 --build=${CLFS_HOST} --host=${CLFS_TARGET} \
70 --prefix=/tools --enable-multibyte --enable-gui=no \
71 --disable-gtktest --disable-xim --with-features=normal \
72 --disable-gpm --without-x --disable-netbeans \
73 --with-tlib=ncurses</userinput></screen>
74
75 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
76 href="../../final-system/common/vim.xml"
77 xpointer="xpointer(//*[@os='g'])"/>
78
79 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
80 href="../../final-system/common/vim.xml"
81 xpointer="xpointer(//*[@os='h'])"/>
82
83 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
84 href="../../final-system/common/vim.xml"
85 xpointer="xpointer(//*[@os='j'])"/>
86
87 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
88 href="../../final-system/common/vim.xml"
89 xpointer="xpointer(//*[@os='k'])"/>
90
91 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
92 href="../../final-system/common/vim.xml"
93 xpointer="xpointer(//*[@os='l'])"/>
94
95<screen os="m"><userinput>ln -sv vim /tools/bin/vi</userinput></screen>
96
97 <para os="tv1" >Create a temporary vimrc to make it function more the way you may
98 expect it to. This is explained more in the final system:</para>
99
100<screen os="tv2"><userinput>cat &gt; /tools/etc/vimrc &lt;&lt; "EOF"
101<literal>" Begin /etc/vimrc
102
103set nocompatible
104set backspace=2
105set ruler
106syntax on
107
108" End /etc/vimrc</literal>
109EOF</userinput></screen>
110
111 </sect2>
112
113 <sect2 role="content">
114 <title/>
115
116 <para>Details on this package are located in <xref
117 linkend="contents-vim" role="."/></para>
118
119 </sect2>
120
121</sect1>
Note: See TracBrowser for help on using the repository browser.