Re-added the "background" option to /etc/vimrc

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3777 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Alexander E. Patrakov 2004-06-11 23:04:52 +00:00
parent 0fa92755df
commit 3e05705a09
3 changed files with 14 additions and 2 deletions

View File

@ -107,6 +107,10 @@ first a summary, then a detailed log.</para>
</itemizedlist>
</listitem>
<listitem><para>June 12, 2004 [alexander]: Re-added the "background" option to
/etc/vimrc, since it has some educational value. Put this option inside an "if"
statement because it applies to some, not all, terminals</para></listitem>
<listitem><para>June 11, 2004 [winkie]: Dropped hackish GRUB instructions in
favor of a patch from upstream.</para></listitem>

View File

@ -106,6 +106,9 @@ set nocompatible
set backspace=2
syntax on
set fileencodings=ucs-bom,utf-8,<replaceable>your-8-bit-charset</replaceable>
if (&amp;term == "iterm") || (&amp;term == "putty")
set background=dark
endif
" End /etc/vimrc
<userinput>EOF</userinput></screen>
@ -126,6 +129,11 @@ like Fedora Core use UTF-8, and conservative ones like Debian
use traditional 8-bit encodings for text files. If you have not
passed the <option>--enable-multibyte</option> switch to the
<command>./configure</command> command above, this line will not work.
Finally, the <emphasis>if</emphasis> statement with the
<emphasis>set background=dark</emphasis> corrects <command>vim</command>'s
guess about the background color of some terminal emulators. This gives the
highliting a better color scheme for use on the black background of
these programs.
</para>
<para>Documentation for other available options can be obtained by running

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!ENTITY version "CVS-20040611">
<!ENTITY releasedate "June 11, 2004">
<!ENTITY version "CVS-20040612">
<!ENTITY releasedate "June 12, 2004">
<!ENTITY milestone "6.0">
<!ENTITY lfs-root "http://www.linuxfromscratch.org/">