From 56f967e444b3b7f7e99590b65cba13fb8e002cbe Mon Sep 17 00:00:00 2001 From: "Alexander E. Patrakov" Date: Wed, 16 Jun 2004 09:44:35 +0000 Subject: Temporarily commented out fileencodings in /etc/vimrc because of a bug git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3798 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 3 +++ chapter06/vim.xml | 12 ++++++++---- general.ent | 4 ++-- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 1e9d2b98e..67c9eacdf 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -76,6 +76,9 @@ first a summary, then a detailed log. +June 16, 2004 [alexander]: Removed the fileencodinfs line from +the /etc/vimrc file because of a bug + June 15, 2004 [winkie]: Corrected installation of Readline. diff --git a/chapter06/vim.xml b/chapter06/vim.xml index 87342421a..7b978ffc7 100644 --- a/chapter06/vim.xml +++ b/chapter06/vim.xml @@ -105,7 +105,7 @@ the following: set nocompatible set backspace=2 syntax on -set fileencodings=ucs-bom,utf-8,your-8-bit-charset + if (&term == "iterm") || (&term == "putty") set background=dark endif @@ -119,7 +119,11 @@ vi-compatible manner. Remove the "no" if you want the old vi behavior. The set backspace=2 allows backspacing over line breaks, autoindents and the start of insert. The syntax on enables vim's -syntax highliting. The set fileencodings=... makes +syntax highliting. + Finally, the if statement with the set background=dark corrects vim's guess about the background color of some terminal emulators. This gives the diff --git a/general.ent b/general.ent index 45a7db6e8..b0d98acd0 100644 --- a/general.ent +++ b/general.ent @@ -1,6 +1,6 @@ - - + + -- cgit v1.2.3-54-g00ecf