aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/config-vim.xml
diff options
context:
space:
mode:
authorAlex Gronenwoud <alex@linuxfromscratch.org>2003-11-13 22:30:39 +0000
committerAlex Gronenwoud <alex@linuxfromscratch.org>2003-11-13 22:30:39 +0000
commit0ba2766b69ef1911d436eaf6cd6be684be50fc74 (patch)
tree97e8d7e7fdddfa51de6519cd5d217f7a3bb1b1d4 /chapter06/config-vim.xml
parent695d6f2ee689d39ba344c3b3c1a4dda03b0e7d44 (diff)
Creating a system-wide vimrc file, as suggested by Greg.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3079 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/config-vim.xml')
-rw-r--r--chapter06/config-vim.xml25
1 files changed, 17 insertions, 8 deletions
diff --git a/chapter06/config-vim.xml b/chapter06/config-vim.xml
index 48a5a05ff..ab9aea8bf 100644
--- a/chapter06/config-vim.xml
+++ b/chapter06/config-vim.xml
@@ -2,19 +2,28 @@
<sect2><title>Configuring Vim</title>
-<para>By default, vim runs in vi compatible mode. Some people might like this,
-but we have a high preference to run vim in vim mode (else we wouldn't
-have included vim in this book, but the original vi). Create the
-<filename>/root/.vimrc</filename> by running the following:</para>
+<para>By default, <userinput>vim</userinput> runs in vi-compatible mode. Some
+people might like this, but we prefer to run <userinput>vim</userinput> in its
+own mode (else we wouldn't have included it in this book, but the original
+<userinput>vi</userinput>). Create a default vim configuration file by running
+the following:</para>
-<screen><userinput>cat &gt; /root/.vimrc &lt;&lt; "EOF"</userinput>
-" Begin /root/.vimrc
+<screen><userinput>cat &gt; /etc/vimrc &lt;&lt; "EOF"</userinput>
+" Begin /etc/vimrc
set nocompatible
-set bs=2
+set backspace=2
+syntax on
-" End /root/.vimrc
+" End /etc/vimrc
<userinput>EOF</userinput></screen>
+<para>The <userinput>set nocompatible</userinput> will make
+<userinput>vim</userinput> behave in a more useful way than the default
+vi-compatible manner. The <userinput>set backspace=2</userinput> allows
+backspacing over line breaks, autoindent and the start of insert. And the
+<userinput>syntax on</userinput> switches on <userinput>vim</userinput>'s
+semantic colouring.</para>
+
</sect2>