vim-6.1

Introduction to Vim

Download location (HTTP):       
Download location (FTP):        ftp://ftp.nluug.nl/pub/editors/vim/unix/vim-6.1.tar.bz2
Version used:                   6.1
Package size:                   2.8 MB
Estimated Disk space required:  27 MB
Estimated build time:           1.93 SBU

The vim package, which is an abbreviation for VI IMproved, contains a vi clone with extra features as compared to the original vi.

vim depends on:
xfree86-4.3.0
vim will utilize:
GLib-1.2.10, GTK+-1.2.10 and lesstif-0.93.36

The default LFS instructions install LFS as a part of the base system, but owing to the lack of X libraries during the base install, vim needs to be recompiled once X in installed to enable the GUI mode. There is no need for special instructions since X support is automatically detected.

Download the patch to make the location of configuration files FHS compliant from http://downloads.linuxfromscratch.org/blfs-patches.

Installation of vim

Install vim by running the following commands:

patch -Np1 -i ../vim-6.1-fhs-compliant-vimrc.patch &&
./configure --prefix=/usr \
   --with-features=huge &&
make &&
make install

Command explanations

patch -Np1 -i ../vim-6.1-fhs-compliant-vimrc... : Changes the location of vimrc and gvimrc from /usr/share to the more appropriate /etc.

--with-features=huge : Enables all the additional features available in vim.

Contents

The vim package contains eview, evim, ex, gview, gvim, gvimdiff, rgview, rgvim, rview, rvim, view, vim, vimdiff, vimtutor and xxd. Except for vimtutor and xxd, all the other commands are symlinks to vim and start vim with different options. vimtutor is a tool to learn the various vim commands and xxd is a command used to create hex dumps.