Ignore:
Timestamp:
09/21/2003 04:44:58 PM (21 years ago)
Author:
Larry Lawrence <larry@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.0, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, v5_0, v5_0-pre1, v5_1, v5_1-pre1, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
ee61e9f
Parents:
c4f1401
Message:

more review changes

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1147 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postlfs/config/vimrc.xml

    rc4f1401 r78b3cd61  
    1 <sect1 id="postlfs-config-vimrc">
     1<sect1 id="postlfs-config-vimrc" xreflabel="/etc/vimrc, ~/.vimrc">
    22<?dbhtml filename="vimrc.html" dir="postlfs"?>
    33<title>/etc/vimrc, ~/.vimrc</title>
    44
    5 <para>The LFS book installs vim as its editor.  At this point we should
     5<para>The <acronym>LFS</acronym> book installs
     6<application>vim</application> as its editor.  At this point we should
    67state that there are a <emphasis>lot</emphasis> of different editors out
    7 there including emacs, nano, joe and many more.  Anyone who has been
    8 around the Internet (especially usenet) for a short time will certainly
    9 have observed at least one flame war, usually involving vim and emacs
    10 users!</para>
     8there including <application>emacs</application>,
     9<application>nano</application>, <application>joe</application> and many
     10more.  Anyone who has been around the Internet (especially usenet) for a
     11short time will certainly have observed at least one flame war, usually
     12involving <application>vim</application> and
     13<application>emacs</application> users!</para>
    1114
    12 <para>The LFS book gives a basic <filename>vimrc</filename> file.  Here,
    13 we attempt to enhance this file.  At startup, vim reads
    14 <filename>/etc/vimrc</filename> and <filename>~/.vimrc</filename>
    15 (i.e., the global vimrc and the user-specific one.).  Note that this is
    16 only true if you compiled vim using LFS-3.1 onwards.  Prior to this,
    17 the global vimrc was <filename>/usr/share/vim/vimrc</filename>.</para>
     15<para>The <acronym>LFS</acronym> book gives a basic <filename>vimrc
     16</filename> file.  Here, we attempt to enhance this file.  At startup,
     17<command>vim</command> reads <filename>/etc/vimrc</filename> and
     18<filename>~/.vimrc</filename> (i.e., the global
     19<filename>vimrc</filename> and the user-specific one.).  Note that this is
     20only true if you compiled <application>vim</application> using
     21<acronym>LFS</acronym>-3.1 onwards.  Prior to this,
     22the global <filename>vimrc</filename> was <filename>/usr/share/vim/vimrc
     23</filename>.</para>
    1824
    19 <para>Here is a slightly expanded vimrc that you can put in
    20 <filename>/etc/vimrc</filename> to provide global effect. Of course, if
     25<para>Here is a slightly expanded <filename>vimrc</filename> that you can
     26put in <filename>/etc/vimrc</filename> to provide global effect. Of course, if
    2127you put it into <filename>/etc/skel/.vimrc</filename> instead, it will
    2228be made available to users you add to the system later. You can also copy
     
    4147" End .vimrc</screen></para>
    4248
    43 <para>A FAQ on the lfs lists regards the comment tags in vimrc.  Note
    44 that they are " instead of the more usual # or //.  This is correct, the
    45 syntax for vimrc is slightly unusual.</para>
     49<para>A <acronym>FAQ</acronym> on the lfs mailing lists regards the
     50comment tags in <filename>vimrc</filename>.  Note that they are " instead
     51of the more usual # or //.  This is correct, the syntax for <filename>vimrc
     52</filename> is slightly unusual.</para>
    4653
    4754<para>We'll run through a quick explanation of what each of the
    4855options in this example file means here:</para>
    4956<itemizedlist>
    50 <listitem><para><userinput>set nocompatible</userinput> : This option stops vim from behaving in a strongly vi-compatible way.  It
    51 should be at the start of any vimrc file as it can affect lots of other
    52 options which you may want to override.</para></listitem>
     57<listitem><para><userinput>set nocompatible</userinput> : This option
     58stops <command>vim</command> from behaving in a strongly <command>vi
     59</command>-compatible way.  It should be at the start of any <filename>vimrc
     60</filename> file as it can affect lots of other options which you may want to
     61override.</para></listitem>
    5362
    54 <listitem><para><userinput>set bs=2</userinput> : This influences the behavior of the backspace option.  It is fairly
    55 complex so see <userinput>:help 'bs'</userinput> for more
    56 details.</para></listitem>
     63<listitem><para><userinput>set bs=2</userinput> : This influences the behavior
     64of the backspace option.  It is fairly complex so see <userinput>:help 'bs'
     65</userinput> for more details.</para></listitem>
    5766
    58 <listitem><para><userinput>set columns=80</userinput> : This simply sets the number of columns used on the
    59 screen.</para></listitem>
     67<listitem><para><userinput>set columns=80</userinput> : This simply sets the
     68number of columns used on the screen.</para></listitem>
    6069
    61 <listitem><para><userinput>set background=dark</userinput> : This tells vim to use colors which look good on a dark
     70<listitem><para><userinput>set background=dark</userinput> : This tells
     71<command>vim</command> to use colors which look good on a dark
    6272background.</para></listitem>
    6373
    64 <listitem><para><userinput>set tabstop=8</userinput> : The number of spaces which a tabstop takes.</para></listitem>
     74<listitem><para><userinput>set tabstop=8</userinput> : The number of spaces
     75which a tabstop takes.</para></listitem>
    6576
    66 <listitem><para><userinput>set wrapmargin=8</userinput> : This is the number of characters from the right window
    67 border where wrapping starts.</para></listitem>
     77<listitem><para><userinput>set wrapmargin=8</userinput> : This is the number of
     78characters from the right window  border where wrapping starts.</para>
     79</listitem>
    6880
    69 <listitem><para><userinput>set nobk</userinput> : This stops vim from creating a backup before
    70 overwriting a file.</para></listitem>
     81<listitem><para><userinput>set nobk</userinput> : This stops <command>vim
     82</command> from creating a backup before overwriting a file.</para></listitem>
    7183
    72 <listitem><para><userinput>syntax on</userinput> : Enables vim's syntax highlighting.</para></listitem>
     84<listitem><para><userinput>syntax on</userinput> : Enables
     85<command>vim</command>'s syntax highlighting.</para></listitem>
    7386
    74 <listitem><para><userinput>set ruler</userinput> : This makes vim show the current row and column at the bottom right of
     87<listitem><para><userinput>set ruler</userinput> : This makes <command>vim
     88</command> show the current row and column at the bottom right of
    7589the screen.</para></listitem>
    7690
    77 <listitem><para><userinput>set noexpandtab</userinput> : This makes vim insert tabs as tab characters instead of as a set of
     91<listitem><para><userinput>set noexpandtab</userinput> : This makes
     92<command>vim</command> insert tabs as tab characters instead of as a set of
    7893spaces.</para></listitem>
    7994
    8095</itemizedlist>
    8196
    82 <para>More information on the <emphasis>many</emphasis> vim options
    83 can be found by reading the help inside vim itself.  Do this by typing
    84 <userinput>:help</userinput> in vim to get the general help, or by
    85 typing <userinput>:help usr_toc.txt</userinput> to view the User Manual
    86 Table of Contents.</para>
     97<para>More information on the <emphasis>many</emphasis> <command>vim</command>
     98options can be found by reading the help inside <command>vim</command> itself. 
     99Do this by typing <command>:</command><userinput>help</userinput> in
     100<command>vim</command> to get the general help, or by typing <command>:
     101</command><userinput>help usr_toc.txt</userinput> to view
     102the User Manual Table of Contents.</para>
    87103
    88104</sect1>
Note: See TracChangeset for help on using the changeset viewer.