瀏覽代碼

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

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3777 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Alexander E. Patrakov 21 年之前
父節點
當前提交
3e05705a09
共有 3 個文件被更改,包括 14 次插入2 次删除
  1. 4 0
      chapter01/changelog.xml
  2. 8 0
      chapter06/vim.xml
  3. 2 2
      general.ent

+ 4 - 0
chapter01/changelog.xml

@@ -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>
 

+ 8 - 0
chapter06/vim.xml

@@ -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

+ 2 - 2
general.ent

@@ -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/">