diff options
author | Gerard Beekmans <gerard@linuxfromscratch.org> | 2001-10-08 01:04:31 +0000 |
---|---|---|
committer | Gerard Beekmans <gerard@linuxfromscratch.org> | 2001-10-08 01:04:31 +0000 |
commit | 93c0fbf36566c328c75ca2048c3db2ec82683bf6 (patch) | |
tree | 46163a93a5e448f6ce4a499b6087bb82bd09d15d /chapter06/vim-inst.xml | |
parent | 938a977c6672b6dab381f2087272f85d3fe6da12 (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.xml | 39 |
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"' >> \ - src/feature.h &&</userinput> +<para><screen><userinput>sed '/shUntil\|link shRepeat/{</userinput> +<userinput> /shUntil/N</userinput> +<userinput> /^/i\</userinput> +<userinput> if exists("b:is_kornshell") || exists("b:is_bash")</userinput> +<userinput> p</userinput> +<userinput> /$/i\</userinput> +<userinput> endif</userinput> +<userinput> d</userinput> +<userinput> }' runtime/syntax/sh.vim > sh.vim.fixed &&</userinput> +<userinput>mv sh.vim.fixed runtime/syntax/sh.vim &&</userinput> <userinput>./configure --prefix=/usr &&</userinput> -<userinput>make &&</userinput> +<userinput>make CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\" &&</userinput> <userinput>make install &&</userinput> <userinput>cd /usr/bin &&</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"' >> \ - src/feature.h &&</userinput> +<para><screen><userinput>sed '/shUntil\|link shRepeat/{</userinput> +<userinput> /shUntil/N</userinput> +<userinput> /^/i\</userinput> +<userinput> if exists("b:is_kornshell") || +exists("b:is_bash")</userinput> +<userinput> p</userinput> +<userinput> /$/i\</userinput> +<userinput> endif</userinput> +<userinput> d</userinput> +<userinput> }' runtime/syntax/sh.vim > sh.vim.fixed +&&</userinput> +<userinput>mv sh.vim.fixed runtime/syntax/sh.vim &&</userinput> <userinput>./configure --prefix=/usr --localstatedir=/var/lib/vim &&</userinput> -<userinput>make &&</userinput> +<userinput>make CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\" +&&</userinput> <userinput>make install &&</userinput> <userinput>cd /usr/bin &&</userinput> -<userinput>ln -sf vim vi &&</userinput> -<userinput>mkdir /var/lib/vim</userinput></screen></para> +<userinput>ln -sf vim vi</userinput></screen></para> </sect2> |