From f5ab23e287e91a6f1bcaf77c5da82775bfc3d64c Mon Sep 17 00:00:00 2001 From: Timothy Bauscher Date: Thu, 16 Jan 2003 03:37:28 +0000 Subject: Converted vim to new layout. Added an Alternatives section. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2351 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/vim-inst.xml | 37 ++++++++++++++++++++++++++----------- 1 file changed, 26 insertions(+), 11 deletions(-) (limited to 'chapter06/vim-inst.xml') diff --git a/chapter06/vim-inst.xml b/chapter06/vim-inst.xml index 0e8ad5590..85de1eb4d 100644 --- a/chapter06/vim-inst.xml +++ b/chapter06/vim-inst.xml @@ -1,21 +1,36 @@ +   + Installation of Vim This package requires its patch to be applied before you can -install it. +install it. This patch fixes a compile problem with GCC-3.2. Apply +the patch by issuing the following command: + +patch -Np1 -i ../vim-&vim-patch-version;.patch + +Prepare Vim to be compiled: + +./configure --prefix=/usr + +Continue with compiling the package: + +make CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\" + +The CPPFLAGS option above causes vim to look +for the /etc/vimrc file which contains vim's global settings. Normally, +this file is assumed to be located in /usr/share/vim, +but we feel that /etc is a more logical place for +this kind of file. + +Finish installing the package: -If you not wish to install Vim, build instructions for -alternative editors are available at -. -Currently, there are instructions for Emacs, nano, and joe. +make install -Install Vim by running the following commands: +Vim can run in old-fashioned vi mode by +creating a symlink, which may be created with the following command: -patch -Np1 -i ../vim-&vim-patch-version;.patch && -./configure --prefix=/usr && -make CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\" && -make install && -ln -s vim /usr/bin/vi +ln -s vim /usr/bin/vi If you plan to install the X Window system on your LFS system, you might want to re-compile Vim after you have installed X. Vim -- cgit v1.2.3-54-g00ecf