From 8557cabb5520c89845d23604d0f255d0c154e4b9 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Sat, 31 Dec 2016 17:46:32 +0000 Subject: Tweak the vimrc configuration file git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11161 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/vim.xml | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'chapter06') diff --git a/chapter06/vim.xml b/chapter06/vim.xml index 346e73029..917d3da58 100644 --- a/chapter06/vim.xml +++ b/chapter06/vim.xml @@ -119,26 +119,29 @@ done set nocompatible set backspace=2 +set mouse=r syntax on if (&term == "iterm") || (&term == "putty") set background=dark endif + " End /etc/vimrc EOF The set nocompatible setting makes - vim behave in a more useful way (the default) than - the vi-compatible manner. Remove the no to keep the - old vi behavior. The set - backspace=2 setting allows backspacing over line breaks, - autoindents, and the start of insert. The syntax - on parameter enables vim's syntax highlighting. Finally, - the if statement with the set - background=dark setting corrects vim's - guess about the background color of some terminal emulators. This - gives the highlighting a better color scheme for use on the black - background of these programs. + vim behave in a more useful way (the default) than the + vi-compatible manner. Remove the no to keep the old + vi behavior. The set backspace=2 + setting allows backspacing over line breaks, autoindents, and the start of + insert. The syntax on parameter enables vim's syntax + highlighting. The set mouse=r setting enables + proper pasting of text with the mouse when working in chroot or over a + remote connection. Finally, the if statement with the + set background=dark setting corrects + vim's guess about the background color of some terminal + emulators. This gives the highlighting a better color scheme for use on the + black background of these programs. Documentation for other available options can be obtained by running the following command: -- cgit v1.2.3-54-g00ecf