Tweak the vimrc configuration file

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11161 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Bruce Dubbs 2016-12-31 17:46:32 +00:00
parent 9742edf147
commit 8557cabb55

View File

@ -119,26 +119,29 @@ done</userinput></screen>
set nocompatible set nocompatible
set backspace=2 set backspace=2
set mouse=r
syntax on syntax on
if (&amp;term == "iterm") || (&amp;term == "putty") if (&amp;term == "iterm") || (&amp;term == "putty")
set background=dark set background=dark
endif endif
" End /etc/vimrc</literal> " End /etc/vimrc</literal>
EOF</userinput></screen> EOF</userinput></screen>
<para>The <parameter>set nocompatible</parameter> setting makes <para>The <parameter>set nocompatible</parameter> setting makes
<command>vim</command> behave in a more useful way (the default) than <command>vim</command> behave in a more useful way (the default) than the
the vi-compatible manner. Remove the <quote>no</quote> to keep the vi-compatible manner. Remove the <quote>no</quote> to keep the old
old <command>vi</command> behavior. The <parameter>set <command>vi</command> behavior. The <parameter>set backspace=2</parameter>
backspace=2</parameter> setting allows backspacing over line breaks, setting allows backspacing over line breaks, autoindents, and the start of
autoindents, and the start of insert. The <parameter>syntax insert. The <parameter>syntax on</parameter> parameter enables vim's syntax
on</parameter> parameter enables vim's syntax highlighting. Finally, highlighting. The <parameter>set mouse=r</parameter> setting enables
the <emphasis>if</emphasis> statement with the <parameter>set proper pasting of text with the mouse when working in chroot or over a
background=dark</parameter> setting corrects <command>vim</command>'s remote connection. Finally, the <emphasis>if</emphasis> statement with the
guess about the background color of some terminal emulators. This <parameter>set background=dark</parameter> setting corrects
gives the highlighting a better color scheme for use on the black <command>vim</command>'s guess about the background color of some terminal
background of these programs.</para> emulators. This gives the highlighting a better color scheme for use on the
black background of these programs.</para>
<para>Documentation for other available options can be obtained by <para>Documentation for other available options can be obtained by
running the following command:</para> running the following command:</para>