Author: bdubbs
Date: Sat Dec 31 09:46:32 2016
New Revision: 11161
Log:
Tweak the vimrc configuration file
Modified:
trunk/BOOK/chapter06/vim.xml
Modified: trunk/BOOK/chapter06/vim.xml
==============================================================================
--- trunk/BOOK/chapter06/vim.xml Sat Dec 31 09:15:47 2016 (r11160)
+++ trunk/BOOK/chapter06/vim.xml Sat Dec 31 09:46:32 2016 (r11161)
@@ -119,26 +119,29 @@
set nocompatible
set backspace=2
+set mouse=r
syntax on
if (&term == "iterm") || (&term == "putty")
set background=dark
endif
+
" End /etc/vimrc</literal>
EOF</userinput></screen>
<para>The <parameter>set nocompatible</parameter> setting makes
- <command>vim</command> behave in a more useful way (the default) than
- the vi-compatible manner. Remove the <quote>no</quote> to keep the
- old <command>vi</command> behavior. The <parameter>set
- backspace=2</parameter> setting allows backspacing over line breaks,
- autoindents, and the start of insert. The <parameter>syntax
- on</parameter> parameter enables vim's syntax highlighting. Finally,
- the <emphasis>if</emphasis> statement with the <parameter>set
- background=dark</parameter> setting corrects <command>vim</command>'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.</para>
+ <command>vim</command> behave in a more useful way (the default) than the
+ vi-compatible manner. Remove the <quote>no</quote> to keep the old
+ <command>vi</command> behavior. The <parameter>set backspace=2</parameter>
+ setting allows backspacing over line breaks, autoindents, and the start of
+ insert. The <parameter>syntax on</parameter> parameter enables vim's syntax
+ highlighting. The <parameter>set mouse=r</parameter> setting enables
+ proper pasting of text with the mouse when working in chroot or over a
+ remote connection. Finally, the <emphasis>if</emphasis> statement with the
+ <parameter>set background=dark</parameter> setting corrects
+ <command>vim</command>'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.</para>
<para>Documentation for other available options can be obtained by
running the following command:</para>
--
http://lists.linuxfromscratch.org/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page