Changeset 173aea3 for chapter06/vim.xml


Ignore:
Timestamp:
01/30/2018 06:35:44 PM (6 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.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:
869b0966
Parents:
73b3eb9
Message:

Update /etc/vimrc to set defaults properly

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/vim.xml

    r73b3eb9 r173aea3  
    129129<literal>" Begin /etc/vimrc
    130130
     131" Ensure defaults are set before customizing settings, not after
     132source $VIMRUNTIME/defaults.vim
     133let skip_defaults_vim=1
     134
    131135set nocompatible
    132136set backspace=2
    133 set mouse=r
     137set mouse=
    134138syntax on
    135139if (&amp;term == "xterm") || (&amp;term == "putty")
     
    139143
    140144" End /etc/vimrc</literal>
    141 EOF
    142 
    143 touch ~/.vimrc</userinput></screen>
     145EOF</userinput></screen>
    144146
    145147    <para>The <parameter>set nocompatible</parameter> setting makes
     
    149151    setting allows backspacing over line breaks, autoindents, and the start of
    150152    insert. The <parameter>syntax on</parameter> parameter enables vim's syntax
    151     highlighting.  The <parameter>set mouse=r</parameter> setting enables
     153    highlighting.  The <parameter>set mouse=</parameter> setting enables
    152154    proper pasting of text with the mouse when working in chroot or over a
    153155    remote connection.  Finally, the <emphasis>if</emphasis> statement with the
     
    156158    emulators. This gives the highlighting a better color scheme for use on the
    157159    black background of these programs.</para>
    158 
     160<!--
    159161    <para>Creating an empty <filename>~/.vimrc</filename> prevents vim from
    160162    overriding settings in <filename>/etc/vimrc</filename> by using
    161163    <filename>/usr/share/vim/vim80/defaults.vim</filename>.</para>
    162 
     164-->
    163165    <para>Documentation for other available options can be obtained by
    164166    running the following command:</para>
Note: See TracChangeset for help on using the changeset viewer.