diff options
author | Mark Hymers <markh@linuxfromscratch.org> | 2001-10-27 22:21:44 +0000 |
---|---|---|
committer | Mark Hymers <markh@linuxfromscratch.org> | 2001-10-27 22:21:44 +0000 |
commit | 4d6fc2dabb417f72752429222a3698ecc8a3c537 (patch) | |
tree | 073c981871be15744ed5f6d72189f286975ea5f6 /chapter06/vim-inst.xml | |
parent | 2443baaf497c491965623107d6fe4f4b505e06aa (diff) |
[Bug 164] XML Tidy up
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1329 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/vim-inst.xml')
-rw-r--r-- | chapter06/vim-inst.xml | 63 |
1 files changed, 30 insertions, 33 deletions
diff --git a/chapter06/vim-inst.xml b/chapter06/vim-inst.xml index 1e25a0f17..176ff9300 100644 --- a/chapter06/vim-inst.xml +++ b/chapter06/vim-inst.xml @@ -9,21 +9,21 @@ which are currently available are for Emacs, Joe and nano.</para> <para>Install Vim by running the following commands:</para> -<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 CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\" &&</userinput> -<userinput>make install &&</userinput> -<userinput>cd /usr/bin &&</userinput> -<userinput>ln -sf vim vi</userinput></screen></para> +<para><screen><userinput>sed '/shUntil\|link shRepeat/{ + /shUntil/N + /^/i\ + if exists("b:is_kornshell") || exists("b:is_bash") + p + /$/i\ + endif + d + }' runtime/syntax/sh.vim > sh.vim.fixed && +mv sh.vim.fixed runtime/syntax/sh.vim && +./configure --prefix=/usr && +make CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\" && +make install && +cd /usr/bin && +ln -sf vim vi</userinput></screen></para> <para>If you plan on installing the X Window system on your LFS system, you might want to re-compile Vim after you have installed X. Vim @@ -41,24 +41,21 @@ 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>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 CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\" -&&</userinput> -<userinput>make install &&</userinput> -<userinput>cd /usr/bin &&</userinput> -<userinput>ln -sf vim vi</userinput></screen></para> +<para><screen><userinput>sed '/shUntil\|link shRepeat/{ + /shUntil/N + /^/i\ + if exists("b:is_kornshell") || exists("b:is_bash") + p + /$/i\ + endif + d + }' runtime/syntax/sh.vim > sh.vim.fixed && +mv sh.vim.fixed runtime/syntax/sh.vim && +./configure --prefix=/usr --localstatedir=/var/lib/vim && +make CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\" && +make install && +cd /usr/bin && +ln -sf vim vi</userinput></screen></para> </sect2> |