Changeset 8557cab


Ignore:
Timestamp:
12/31/2016 05:46:32 PM (7 years ago)
Author:
Bruce Dubbs <bdubbs@…>
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, 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:
512c848
Parents:
9742edf
Message:

Tweak the vimrc configuration file

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/vim.xml

    r9742edf r8557cab  
    120120set nocompatible
    121121set backspace=2
     122set mouse=r
    122123syntax on
    123124if (&amp;term == "iterm") || (&amp;term == "putty")
     
    125126endif
    126127
     128
    127129" End /etc/vimrc</literal>
    128130EOF</userinput></screen>
    129131
    130132    <para>The <parameter>set nocompatible</parameter> setting makes
    131     <command>vim</command> behave in a more useful way (the default) than
    132     the vi-compatible manner. Remove the <quote>no</quote> to keep the
    133     old <command>vi</command> behavior. The <parameter>set
    134     backspace=2</parameter> setting allows backspacing over line breaks,
    135     autoindents, and the start of insert. The <parameter>syntax
    136     on</parameter> parameter enables vim's syntax highlighting. Finally,
    137     the <emphasis>if</emphasis> statement with the <parameter>set
    138     background=dark</parameter> setting corrects <command>vim</command>'s
    139     guess about the background color of some terminal emulators. This
    140     gives the highlighting a better color scheme for use on the black
    141     background of these programs.</para>
     133    <command>vim</command> behave in a more useful way (the default) than the
     134    vi-compatible manner. Remove the <quote>no</quote> to keep the old
     135    <command>vi</command> behavior. The <parameter>set backspace=2</parameter>
     136    setting allows backspacing over line breaks, autoindents, and the start of
     137    insert. The <parameter>syntax on</parameter> parameter enables vim's syntax
     138    highlighting.  The <parameter>set mouse=r</parameter> setting enables
     139    proper pasting of text with the mouse when working in chroot or over a
     140    remote connection.  Finally, the <emphasis>if</emphasis> statement with the
     141    <parameter>set background=dark</parameter> setting corrects
     142    <command>vim</command>'s guess about the background color of some terminal
     143    emulators. This gives the highlighting a better color scheme for use on the
     144    black background of these programs.</para>
    142145
    143146    <para>Documentation for other available options can be obtained by
Note: See TracChangeset for help on using the changeset viewer.