diff options
author | Alexander E. Patrakov <alexander@linuxfromscratch.org> | 2004-06-11 23:04:52 +0000 |
---|---|---|
committer | Alexander E. Patrakov <alexander@linuxfromscratch.org> | 2004-06-11 23:04:52 +0000 |
commit | 3e05705a0945b2eaa5601975beaf870e9b24c4eb (patch) | |
tree | a8335c3036b7e8482889435730a6a4bdfa7ccc03 /chapter06 | |
parent | 0fa92755df1e4e47e060b71c701adafb4160c2da (diff) |
Re-added the "background" option to /etc/vimrc
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3777 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06')
-rw-r--r-- | chapter06/vim.xml | 8 |
1 files changed, 8 insertions, 0 deletions
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 |