From 673b0d84ba9591e07c0bdf0ee49d92eba10f502c Mon Sep 17 00:00:00 2001 From: Matthew Burgess Date: Mon, 3 May 2004 10:59:46 +0000 Subject: * Merged newxml into HEAD git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3435 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/vim.xml | 152 ++++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 124 insertions(+), 28 deletions(-) (limited to 'chapter06/vim.xml') diff --git a/chapter06/vim.xml b/chapter06/vim.xml index 272b1f4cf..a11a4dca9 100644 --- a/chapter06/vim.xml +++ b/chapter06/vim.xml @@ -1,16 +1,23 @@ + + + %general-entities; +]> -Installing Vim-&vim-version; - +Vim-&vim-version; + + +Vim The Vim package contains a powerful text editor. -&buildtime; &vim-time; -&diskspace; &vim-compsize; +&buildtime; 0.4 SBU +&diskspace; 34 MB + +Vim installation depends on: Bash, Binutils, Coreutils, Diffutils, +GCC, Glibc, Grep, Make, Ncurses, Sed. -&aa-vim-down; -&aa-vim-dep; -   Alternatives to Vim @@ -19,14 +26,12 @@ have a look at for suggested installation instructions. -   Installation of Vim First change the default locations of the vimrc and -gvimrc configuration files to /etc. +gvimrc configuration files to /etc. echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' >> src/feature.h @@ -39,18 +44,19 @@ echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' >> src/feature.h< make -To have the results tested, you can issue: +To test the results, you can issue: make check. However, this test suite outputs a lot of seemingly garbage characters to the screen, and this can wreak havoc with the settings of the current terminal. Therefore the running of the test suite here is strictly optional. -And install the package: +Now install the package: make install -When called as vi, vim -will run in old-fashioned vi-mode. To allow this, create a symlink: +Many users are used to using vi, instead of +vim. To let them execute vim when +they habitually enter vi, create a symlink: ln -s vim /usr/bin/vi @@ -61,14 +67,18 @@ installed. For more information read the Vim documentation. -   -Configuring Vim +Configuring Vim +/etc/vim -By default, vim runs in vi-compatible mode. Some -people might like this, but we prefer to run vim in its +By default, vim runs in vi-incompatible mode. Some +people might not like this, but we prefer to run vim in its own mode (else we wouldn't have included it in this book, but the original -vi). Create a default vim configuration file by running +vi). We've included the setting of "nocompatible" +below to high-light the fact that the new behavior is being used. It +also reminds those who would change to "compatible" mode that it should +appear first because it changes other settings and overrides must come +after this setting. Create a default vim configuration file by running the following: cat > /etc/vimrc << "EOF" @@ -81,17 +91,103 @@ syntax on " End /etc/vimrc EOF -The set nocompatible will make -vim behave in a more useful way than the default -vi-compatible manner. The set backspace=2 allows -backspacing over line breaks, autoindent and the start of insert. And the -syntax on switches on vim's -semantic colouring. +The set nocompatible makes +vim behave in a more useful way (the default) than the +vi-compatible manner. Remove the "no" if you want the old vi +behavior. The set backspace=2 allows +backspacing over line breaks, autoindents and the start of insert. The +syntax on enables vim's +semantic coloring. -&aa-vim-shortdesc; -&aa-vim-desc; - +Contents of Vim + +Installed programs: efm_filter.pl, efm_perl.pl, ex +(link to vim), less.sh, mve.awk, pltags.pl, ref, rview (link to vim), rvim +(link to vim), shtags.pl, tcltags, vi (link to vim), view (link to vim), vim, +vim132, vim2html.pl, vimdiff (link to vim), vimm, vimspell.sh, vimtutor +and xxd + + + +Short descriptions + +efm_filter.pl +efm_filter.pl is a filter for creating an error +file that can be read by vim. + +efm_perl.pl +efm_perl.pl reformats the error messages of the +Perl interpreter for use with the quickfix mode of vim. + +ex +ex starts vim in ex mode. + +less.sh +less.sh is a script that starts vim with less.vim. + +mve.awk +mve.awk processes vim errors. + +pltags.pl +pltags.pl creates a tags file for perl code, +for use by vim. + +ref +ref checks the spelling of arguments. + +rview +rview is a restricted version of view: no shell +commands can be started and view can't be suspended. + +rvim +rvim is a restricted version of vim: no shell +commands can be started and vim can't be suspended. +shtags.pl +shtags.pl generates a tag file for perl scripts. + +tcltags +tcltags generates a tag file for TCL code. + +view +view starts vim in read-only mode. + +vim +vim is the editor. + +vim132 +vim132 starts vim with the terminal in +132-column mode. + +vim2html.pl +vim2html.pl converts vim documentation to +HTML. + +vimdiff +vimdiff edits two or three versions of a file with +vim and show differences. + +vimm +vimm enables the DEC locator input model on a +remote terminal. + +vimspell.sh +vimspell.sh is a script which spells a file and generates the syntax +statements necessary to highlight in vim. + +vimtutor +vimtutor teaches you the basic keys and commands +of vim. + +xxd +xxd makes a hex dump of the given file. It can +also do the reverse, so it can be used for binary patching. + + + + + + -- cgit v1.2.3-54-g00ecf