Changeset 8ad7980 for chapter06/vim.xml


Ignore:
Timestamp:
06/19/2004 01:39:28 PM (20 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
f67f5cf
Parents:
ef57e3b
Message:

Tags corrections

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3812 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/vim.xml

    ref57e3b r8ad7980  
    5050
    5151<para>The optional but highly recommended
    52 <userinput>--enable-multibyte</userinput> switch
     52<parameter>--enable-multibyte</parameter> switch
    5353includes support for editing files in multibyte character encodings into
    5454<command>vim</command>.
     
    9393people might not like this, but we prefer to run <command>vim</command> in its
    9494own mode (else we wouldn't have included it in this book, but the original
    95 <command>vi</command>). We've included the setting of "nocompatible"
     95<command>vi</command>). We've included the setting of <quote>nocompatible</quote>
    9696below to high-light the fact that the new behavior is being used. It
    97 also reminds those who would change to "compatible" mode that it should
     97also reminds those who would change to <quote>compatible</quote> mode that it should
    9898appear first because it changes other settings and overrides must come
    9999after this setting. Create a default vim configuration file by running
    100100the following:</para>
    101101
    102 <screen><userinput>cat &gt; /etc/vimrc &lt;&lt; "EOF"</userinput>
     102<screen><userinput>cat &gt; /etc/vimrc &lt;&lt; "EOF"
    103103" Begin /etc/vimrc
    104104
     
    106106set backspace=2
    107107syntax on
    108 <!-- set fileencodings=ucs-bom,utf-8,<replaceable>your-8-bit-charset</replaceable> -->
     108<!-- set fileencodings=ucs-bom,utf-8,<replaceable>[your-8-bit-charset]</replaceable> -->
    109109if (&amp;term == "iterm") || (&amp;term == "putty")
    110110  set background=dark
     
    112112
    113113" End /etc/vimrc
    114 <userinput>EOF</userinput></screen>
    115 
    116 <para>The <emphasis>set nocompatible</emphasis> makes
     114EOF</userinput></screen>
     115
     116<para>The <parameter>set nocompatible</parameter> makes
    117117<command>vim</command> behave in a more useful way (the default) than the
    118 vi-compatible manner. Remove the "no" if you want the old <command>vi</command>
    119 behavior. The <emphasis>set backspace=2</emphasis> allows
     118vi-compatible manner. Remove the <quote>no</quote> if you want the old <command>vi</command>
     119behavior. The <parameter>set backspace=2</parameter> allows
    120120backspacing over line breaks, autoindents and the start of insert. The
    121 <emphasis>syntax on</emphasis> enables <command>vim</command>'s
     121<parameter>syntax on</parameter> enables <command>vim</command>'s
    122122syntax highliting.
    123123<!-- XXX: the ascii-only files are considered to be in utf-8 - that's not what
    124124one expects . That's why fileencodings stuff is commented out for now
    125125
    126 The <emphasis>set fileencodings=...</emphasis> makes
     126The <parameter>set fileencodings=...</parameter> makes
    127127<command>vim</command> capable of automatically detecting the character
    128128set of the file being edited (replace
    129 "<replaceable>your-8-bit-charset</replaceable>"
     129"<replaceable>[your-8-bit-charset]</replaceable>"
    130130with the value appropriate for your country, e.g. iso-8859-15 in Italy).
    131131This line is useful because bleeding-edge distributions
    132132like Fedora Core use UTF-8, and conservative ones like Debian
    133133use traditional 8-bit encodings for text files. If you have not
    134 passed the <option>- -enable-multibyte</option> switch to the
     134passed the <parameter>- -enable-multibyte</parameter> switch to the
    135135<command>./configure</command> command above, this line will not work. -->
    136136Finally, the <emphasis>if</emphasis> statement with the
    137 <emphasis>set background=dark</emphasis> corrects <command>vim</command>'s
     137<parameter>set background=dark</parameter> corrects <command>vim</command>'s
    138138guess about the background color of some terminal emulators. This gives the
    139139highliting a better color scheme for use on the black background of
     
    165165<listitem>
    166166<indexterm zone="ch-system-vim efm_filter.pl"><primary sortas="b-efm_filter.pl">efm_filter.pl</primary></indexterm>
    167 <para>is a filter for creating an error file that can be read by vim.</para>
     167<para>is a filter for creating an error file that can be read by <command>vim</command>.</para>
    168168</listitem>
    169169</varlistentry>
     
    174174<indexterm zone="ch-system-vim efm_perl.pl"><primary sortas="b-efm_perl.pl">efm_perl.pl</primary></indexterm>
    175175<para>reformats the error messages of the
    176 Perl interpreter for use with the <quote>quickfix</quote> mode of vim.</para>
     176Perl interpreter for use with the <quote>quickfix</quote> mode of <command>vim</command>.</para>
    177177</listitem>
    178178</varlistentry>
     
    182182<listitem>
    183183<indexterm zone="ch-system-vim ex"><primary sortas="b-ex">ex</primary></indexterm>
    184 <para>starts vim in ex mode.</para>
     184<para>starts <command>vim</command> in ex mode.</para>
    185185</listitem>
    186186</varlistentry>
     
    190190<listitem>
    191191<indexterm zone="ch-system-vim less.sh"><primary sortas="b-less.sh">less.sh</primary></indexterm>
    192 <para>is a script that starts vim with less.vim.</para>
     192<para>is a script that starts <command>vim</command> with less.vim.</para>
    193193</listitem>
    194194</varlistentry>
     
    198198<listitem>
    199199<indexterm zone="ch-system-vim mve.awk"><primary sortas="b-mve.awk">mve.awk</primary></indexterm>
    200 <para>processes vim errors.</para>
     200<para>processes <command>vim</command> errors.</para>
    201201</listitem>
    202202</varlistentry>
     
    206206<listitem>
    207207<indexterm zone="ch-system-vim pltags.pl"><primary sortas="b-pltags.pl">pltags.pl</primary></indexterm>
    208 <para>creates a tags file for perl code, for use by vim.</para>
     208<para>creates a tags file for Perl code, for use by <command>vim</command>.</para>
    209209</listitem>
    210210</varlistentry>
     
    222222<listitem>
    223223<indexterm zone="ch-system-vim rview"><primary sortas="b-rview">rview</primary></indexterm>
    224 <para>is a restricted version of view: no shell
    225 commands can be started and view can't be suspended.</para>
     224<para>is a restricted version of <command>view</command>: no shell
     225commands can be started and <command>view</command> can't be suspended.</para>
    226226</listitem>
    227227</varlistentry>
     
    231231<listitem>
    232232<indexterm zone="ch-system-vim rvim"><primary sortas="b-rvim">rvim</primary></indexterm>
    233 <para>is a restricted version of vim: no shell
    234 commands can be started and vim can't be suspended.</para>
     233<para>is a restricted version of <command>vim</command>: no shell
     234commands can be started and <command>vim</command> can't be suspended.</para>
    235235</listitem>
    236236</varlistentry>
     
    240240<listitem>
    241241<indexterm zone="ch-system-vim shtags.pl"><primary sortas="b-shtags.pl">shtags.pl</primary></indexterm>
    242 <para>generates a tag file for perl scripts.</para>
     242<para>generates a tag file for Perl scripts.</para>
    243243</listitem>
    244244</varlistentry>
     
    256256<listitem>
    257257<indexterm zone="ch-system-vim view"><primary sortas="b-view">view</primary></indexterm>
    258 <para>starts vim in read-only mode.</para>
     258<para>starts <command>vim</command> in read-only mode.</para>
    259259</listitem>
    260260</varlistentry>
     
    272272<listitem>
    273273<indexterm zone="ch-system-vim vim132"><primary sortas="b-vim132">vim132</primary></indexterm>
    274 <para>starts vim with the terminal in 132-column mode.</para>
     274<para>starts <command>vim</command> with the terminal in 132-column mode.</para>
    275275</listitem>
    276276</varlistentry>
     
    280280<listitem>
    281281<indexterm zone="ch-system-vim vim2html.pl"><primary sortas="b-vim2html.pl">vim2html.pl</primary></indexterm>
    282 <para>converts vim documentation to HTML.</para>
     282<para>converts Vim documentation to HTML.</para>
    283283</listitem>
    284284</varlistentry>
     
    288288<listitem>
    289289<indexterm zone="ch-system-vim vimdiff"><primary sortas="b-vimdiff">vimdiff</primary></indexterm>
    290 <para>edits two or three versions of a file with vim and show differences.</para>
     290<para>edits two or three versions of a file with <command>vim</command> and show differences.</para>
    291291</listitem>
    292292</varlistentry>
     
    305305<indexterm zone="ch-system-vim vimspell.sh"><primary sortas="b-vimspell.sh">vimspell.sh</primary></indexterm>
    306306<para>is a script which spells a file and generates the syntax statements necessary
    307 to highlight in vim. This script requires the old Unix <command>spell</command>
     307to highlight in <command>vim</command>. This script requires the old Unix <command>spell</command>
    308308command, which is provided neither in LFS nor in BLFS.</para>
    309309</listitem>
     
    314314<listitem>
    315315<indexterm zone="ch-system-vim vimtutor"><primary sortas="b-vimtutor">vimtutor</primary></indexterm>
    316 <para>teaches you the basic keys and commands of vim.</para>
     316<para>teaches you the basic keys and commands of <command>vim</command>.</para>
    317317</listitem>
    318318</varlistentry>
Note: See TracChangeset for help on using the changeset viewer.