diff options
author | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2016-12-31 17:46:32 +0000 |
---|---|---|
committer | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2016-12-31 17:46:32 +0000 |
commit | 8557cabb5520c89845d23604d0f255d0c154e4b9 (patch) | |
tree | 134b5de0cd8c4fcf62d0b8344c0fcd83d7d5b20e | |
parent | 9742edf14755e42ecbfab6b837817508c56c4411 (diff) |
Tweak the vimrc configuration file
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11161 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
-rw-r--r-- | chapter06/vim.xml | 25 |
1 files changed, 14 insertions, 11 deletions
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</userinput></screen> 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> |