diff options
author | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2004-06-19 13:39:28 +0000 |
---|---|---|
committer | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2004-06-19 13:39:28 +0000 |
commit | 8ad79807a3c97e18a90319c9b91018b0be2bbb3c (patch) | |
tree | 2c81e99ccc07955e04e833dd91650e7a3385cbe5 /chapter06/vim.xml | |
parent | ef57e3bcf1a7fb7eda2717fc2334fe599da01888 (diff) |
Tags corrections
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3812 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/vim.xml')
-rw-r--r-- | chapter06/vim.xml | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/chapter06/vim.xml b/chapter06/vim.xml index 7b978ffc7..415710124 100644 --- a/chapter06/vim.xml +++ b/chapter06/vim.xml @@ -49,7 +49,7 @@ echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' >> src/feature.h</userinput>< <screen><userinput>./configure --prefix=/usr --enable-multibyte</userinput></screen> <para>The optional but highly recommended -<userinput>--enable-multibyte</userinput> switch +<parameter>--enable-multibyte</parameter> switch includes support for editing files in multibyte character encodings into <command>vim</command>. It is needed for those people who ignore our recommendation not to @@ -92,49 +92,49 @@ installed. For more information read the Vim documentation.</para> <para>By default, <command>vim</command> runs in vi-incompatible mode. Some people might not like this, but we prefer to run <command>vim</command> in its own mode (else we wouldn't have included it in this book, but the original -<command>vi</command>). We've included the setting of "nocompatible" +<command>vi</command>). We've included the setting of <quote>nocompatible</quote> 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 +also reminds those who would change to <quote>compatible</quote> 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:</para> -<screen><userinput>cat > /etc/vimrc << "EOF"</userinput> +<screen><userinput>cat > /etc/vimrc << "EOF" " Begin /etc/vimrc set nocompatible set backspace=2 syntax on -<!-- set fileencodings=ucs-bom,utf-8,<replaceable>your-8-bit-charset</replaceable> --> +<!-- set fileencodings=ucs-bom,utf-8,<replaceable>[your-8-bit-charset]</replaceable> --> if (&term == "iterm") || (&term == "putty") set background=dark endif " End /etc/vimrc -<userinput>EOF</userinput></screen> +EOF</userinput></screen> -<para>The <emphasis>set nocompatible</emphasis> makes +<para>The <parameter>set nocompatible</parameter> makes <command>vim</command> behave in a more useful way (the default) than the -vi-compatible manner. Remove the "no" if you want the old <command>vi</command> -behavior. The <emphasis>set backspace=2</emphasis> allows +vi-compatible manner. Remove the <quote>no</quote> if you want the old <command>vi</command> +behavior. The <parameter>set backspace=2</parameter> allows backspacing over line breaks, autoindents and the start of insert. The -<emphasis>syntax on</emphasis> enables <command>vim</command>'s +<parameter>syntax on</parameter> enables <command>vim</command>'s syntax highliting. <!-- XXX: the ascii-only files are considered to be in utf-8 - that's not what one expects . That's why fileencodings stuff is commented out for now -The <emphasis>set fileencodings=...</emphasis> makes +The <parameter>set fileencodings=...</parameter> makes <command>vim</command> capable of automatically detecting the character set of the file being edited (replace -"<replaceable>your-8-bit-charset</replaceable>" +"<replaceable>[your-8-bit-charset]</replaceable>" with the value appropriate for your country, e.g. iso-8859-15 in Italy). This line is useful because bleeding-edge distributions like Fedora Core use UTF-8, and conservative ones like Debian use traditional 8-bit encodings for text files. If you have not -passed the <option>- -enable-multibyte</option> switch to the +passed the <parameter>- -enable-multibyte</parameter> switch to the <command>./configure</command> command above, this line will not work. --> Finally, the <emphasis>if</emphasis> statement with the -<emphasis>set background=dark</emphasis> corrects <command>vim</command>'s +<parameter>set background=dark</parameter> corrects <command>vim</command>'s guess about the background color of some terminal emulators. This gives the highliting a better color scheme for use on the black background of these programs. @@ -164,7 +164,7 @@ vimtutor and xxd</seg></seglistitem> <term><command>efm_filter.pl</command></term> <listitem> <indexterm zone="ch-system-vim efm_filter.pl"><primary sortas="b-efm_filter.pl">efm_filter.pl</primary></indexterm> -<para>is a filter for creating an error file that can be read by vim.</para> +<para>is a filter for creating an error file that can be read by <command>vim</command>.</para> </listitem> </varlistentry> @@ -173,7 +173,7 @@ vimtutor and xxd</seg></seglistitem> <listitem> <indexterm zone="ch-system-vim efm_perl.pl"><primary sortas="b-efm_perl.pl">efm_perl.pl</primary></indexterm> <para>reformats the error messages of the -Perl interpreter for use with the <quote>quickfix</quote> mode of vim.</para> +Perl interpreter for use with the <quote>quickfix</quote> mode of <command>vim</command>.</para> </listitem> </varlistentry> @@ -181,7 +181,7 @@ Perl interpreter for use with the <quote>quickfix</quote> mode of vim.</para> <term><command>ex</command></term> <listitem> <indexterm zone="ch-system-vim ex"><primary sortas="b-ex">ex</primary></indexterm> -<para>starts vim in ex mode.</para> +<para>starts <command>vim</command> in ex mode.</para> </listitem> </varlistentry> @@ -189,7 +189,7 @@ Perl interpreter for use with the <quote>quickfix</quote> mode of vim.</para> <term><command>less.sh</command></term> <listitem> <indexterm zone="ch-system-vim less.sh"><primary sortas="b-less.sh">less.sh</primary></indexterm> -<para>is a script that starts vim with less.vim.</para> +<para>is a script that starts <command>vim</command> with less.vim.</para> </listitem> </varlistentry> @@ -197,7 +197,7 @@ Perl interpreter for use with the <quote>quickfix</quote> mode of vim.</para> <term><command>mve.awk</command></term> <listitem> <indexterm zone="ch-system-vim mve.awk"><primary sortas="b-mve.awk">mve.awk</primary></indexterm> -<para>processes vim errors.</para> +<para>processes <command>vim</command> errors.</para> </listitem> </varlistentry> @@ -205,7 +205,7 @@ Perl interpreter for use with the <quote>quickfix</quote> mode of vim.</para> <term><command>pltags.pl</command></term> <listitem> <indexterm zone="ch-system-vim pltags.pl"><primary sortas="b-pltags.pl">pltags.pl</primary></indexterm> -<para>creates a tags file for perl code, for use by vim.</para> +<para>creates a tags file for Perl code, for use by <command>vim</command>.</para> </listitem> </varlistentry> @@ -221,8 +221,8 @@ Perl interpreter for use with the <quote>quickfix</quote> mode of vim.</para> <term><command>rview</command></term> <listitem> <indexterm zone="ch-system-vim rview"><primary sortas="b-rview">rview</primary></indexterm> -<para>is a restricted version of view: no shell -commands can be started and view can't be suspended.</para> +<para>is a restricted version of <command>view</command>: no shell +commands can be started and <command>view</command> can't be suspended.</para> </listitem> </varlistentry> @@ -230,8 +230,8 @@ commands can be started and view can't be suspended.</para> <term><command>rvim</command></term> <listitem> <indexterm zone="ch-system-vim rvim"><primary sortas="b-rvim">rvim</primary></indexterm> -<para>is a restricted version of vim: no shell -commands can be started and vim can't be suspended.</para> +<para>is a restricted version of <command>vim</command>: no shell +commands can be started and <command>vim</command> can't be suspended.</para> </listitem> </varlistentry> @@ -239,7 +239,7 @@ commands can be started and vim can't be suspended.</para> <term><command>shtags.pl</command></term> <listitem> <indexterm zone="ch-system-vim shtags.pl"><primary sortas="b-shtags.pl">shtags.pl</primary></indexterm> -<para>generates a tag file for perl scripts.</para> +<para>generates a tag file for Perl scripts.</para> </listitem> </varlistentry> @@ -255,7 +255,7 @@ commands can be started and vim can't be suspended.</para> <term><command>view</command></term> <listitem> <indexterm zone="ch-system-vim view"><primary sortas="b-view">view</primary></indexterm> -<para>starts vim in read-only mode.</para> +<para>starts <command>vim</command> in read-only mode.</para> </listitem> </varlistentry> @@ -271,7 +271,7 @@ commands can be started and vim can't be suspended.</para> <term><command>vim132</command></term> <listitem> <indexterm zone="ch-system-vim vim132"><primary sortas="b-vim132">vim132</primary></indexterm> -<para>starts vim with the terminal in 132-column mode.</para> +<para>starts <command>vim</command> with the terminal in 132-column mode.</para> </listitem> </varlistentry> @@ -279,7 +279,7 @@ commands can be started and vim can't be suspended.</para> <term><command>vim2html.pl</command></term> <listitem> <indexterm zone="ch-system-vim vim2html.pl"><primary sortas="b-vim2html.pl">vim2html.pl</primary></indexterm> -<para>converts vim documentation to HTML.</para> +<para>converts Vim documentation to HTML.</para> </listitem> </varlistentry> @@ -287,7 +287,7 @@ commands can be started and vim can't be suspended.</para> <term><command>vimdiff</command></term> <listitem> <indexterm zone="ch-system-vim vimdiff"><primary sortas="b-vimdiff">vimdiff</primary></indexterm> -<para>edits two or three versions of a file with vim and show differences.</para> +<para>edits two or three versions of a file with <command>vim</command> and show differences.</para> </listitem> </varlistentry> @@ -304,7 +304,7 @@ commands can be started and vim can't be suspended.</para> <listitem> <indexterm zone="ch-system-vim vimspell.sh"><primary sortas="b-vimspell.sh">vimspell.sh</primary></indexterm> <para>is a script which spells a file and generates the syntax statements necessary -to highlight in vim. This script requires the old Unix <command>spell</command> +to highlight in <command>vim</command>. This script requires the old Unix <command>spell</command> command, which is provided neither in LFS nor in BLFS.</para> </listitem> </varlistentry> @@ -313,7 +313,7 @@ command, which is provided neither in LFS nor in BLFS.</para> <term><command>vimtutor</command></term> <listitem> <indexterm zone="ch-system-vim vimtutor"><primary sortas="b-vimtutor">vimtutor</primary></indexterm> -<para>teaches you the basic keys and commands of vim.</para> +<para>teaches you the basic keys and commands of <command>vim</command>.</para> </listitem> </varlistentry> |