diff options
-rw-r--r-- | chapter01/changelog.xml | 4 | ||||
-rw-r--r-- | chapter06/vim.xml | 8 | ||||
-rw-r--r-- | general.ent | 4 |
3 files changed, 14 insertions, 2 deletions
diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index d64b2d12a..ec64d33a3 100644 --- a/chapter01/changelog.xml +++ b/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> diff --git a/chapter06/vim.xml b/chapter06/vim.xml index 18b810d31..87342421a 100644 --- a/chapter06/vim.xml +++ b/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 (&term == "iterm") || (&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 diff --git a/general.ent b/general.ent index 77325875f..452e33bde 100644 --- a/general.ent +++ b/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/"> |