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 --- chapter06/vim.xml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'chapter06/vim.xml') 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 -- cgit v1.2.3-54-g00ecf