aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/vim-inst.xml
diff options
context:
space:
mode:
authorGerard Beekmans <gerard@linuxfromscratch.org>2001-10-08 01:04:31 +0000
committerGerard Beekmans <gerard@linuxfromscratch.org>2001-10-08 01:04:31 +0000
commit93c0fbf36566c328c75ca2048c3db2ec82683bf6 (patch)
tree46163a93a5e448f6ce4a499b6087bb82bd09d15d /chapter06/vim-inst.xml
parent938a977c6672b6dab381f2087272f85d3fe6da12 (diff)
updated to:
libtool-1.4.2 lilo-22.0 man-pages-1.40 modutils-2.4.10 sysvinit-2.83 util-linux-2.11l vim-6.0 modified vim commands for the 6.0 release git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1297 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/vim-inst.xml')
-rw-r--r--chapter06/vim-inst.xml39
1 files changed, 27 insertions, 12 deletions
diff --git a/chapter06/vim-inst.xml b/chapter06/vim-inst.xml
index 5ec6ae396..1e25a0f17 100644
--- a/chapter06/vim-inst.xml
+++ b/chapter06/vim-inst.xml
@@ -7,15 +7,20 @@ prefer. There are a few hints how to install different editors
available at <ulink url="&hints-root;">&hints-root;</ulink>. The hints
which are currently available are for Emacs, Joe and nano.</para>
-<para>Both the vim-rt and vim-src packages need to be unpacked to install Vim.
-Both packages will unpack their files into the vim-&vim-version; directory. This
-won't overwrite any files from the other package. So it doesn't matter
-in which order it is done. Install Vim by running the following commands:</para>
+<para>Install Vim by running the following commands:</para>
-<para><screen><userinput>echo '#define SYS_VIMRC_FILE "/etc/vimrc"' &gt;&gt; \
-&nbsp;&nbsp;&nbsp;src/feature.h &amp;&amp;</userinput>
+<para><screen><userinput>sed '/shUntil\|link shRepeat/{</userinput>
+<userinput>&nbsp;&nbsp;&nbsp;/shUntil/N</userinput>
+<userinput>&nbsp;&nbsp;&nbsp;/^/i\</userinput>
+<userinput>&nbsp;&nbsp;&nbsp;if exists("b:is_kornshell") || exists("b:is_bash")</userinput>
+<userinput>&nbsp;&nbsp;&nbsp;p</userinput>
+<userinput>&nbsp;&nbsp;&nbsp;/$/i\</userinput>
+<userinput>&nbsp;&nbsp;&nbsp;endif</userinput>
+<userinput>&nbsp;&nbsp;&nbsp;d</userinput>
+<userinput>&nbsp;&nbsp;&nbsp;}' runtime/syntax/sh.vim &gt; sh.vim.fixed &amp;&amp;</userinput>
+<userinput>mv sh.vim.fixed runtime/syntax/sh.vim &amp;&amp;</userinput>
<userinput>./configure --prefix=/usr &amp;&amp;</userinput>
-<userinput>make &amp;&amp;</userinput>
+<userinput>make CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\" &amp;&amp;</userinput>
<userinput>make install &amp;&amp;</userinput>
<userinput>cd /usr/bin &amp;&amp;</userinput>
<userinput>ln -sf vim vi</userinput></screen></para>
@@ -36,14 +41,24 @@ for their temporary state files, like temporary save files for example.
If you wish vim to conform to the FHS, you should use this command set
instead of the one presented above:</para>
-<para><screen><userinput>echo '#define SYS_VIMRC_FILE "/etc/vimrc"' &gt;&gt; \
-&nbsp;&nbsp;&nbsp;src/feature.h &amp;&amp;</userinput>
+<para><screen><userinput>sed '/shUntil\|link shRepeat/{</userinput>
+<userinput>&nbsp;&nbsp;&nbsp;/shUntil/N</userinput>
+<userinput>&nbsp;&nbsp;&nbsp;/^/i\</userinput>
+<userinput>&nbsp;&nbsp;&nbsp;if exists("b:is_kornshell") ||
+exists("b:is_bash")</userinput>
+<userinput>&nbsp;&nbsp;&nbsp;p</userinput>
+<userinput>&nbsp;&nbsp;&nbsp;/$/i\</userinput>
+<userinput>&nbsp;&nbsp;&nbsp;endif</userinput>
+<userinput>&nbsp;&nbsp;&nbsp;d</userinput>
+<userinput>&nbsp;&nbsp;&nbsp;}' runtime/syntax/sh.vim &gt; sh.vim.fixed
+&amp;&amp;</userinput>
+<userinput>mv sh.vim.fixed runtime/syntax/sh.vim &amp;&amp;</userinput>
<userinput>./configure --prefix=/usr --localstatedir=/var/lib/vim &amp;&amp;</userinput>
-<userinput>make &amp;&amp;</userinput>
+<userinput>make CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\"
+&amp;&amp;</userinput>
<userinput>make install &amp;&amp;</userinput>
<userinput>cd /usr/bin &amp;&amp;</userinput>
-<userinput>ln -sf vim vi &amp;&amp;</userinput>
-<userinput>mkdir /var/lib/vim</userinput></screen></para>
+<userinput>ln -sf vim vi</userinput></screen></para>
</sect2>