diff options
author | Alex Gronenwoud <alex@linuxfromscratch.org> | 2004-02-09 22:45:54 +0000 |
---|---|---|
committer | Alex Gronenwoud <alex@linuxfromscratch.org> | 2004-02-09 22:45:54 +0000 |
commit | 342b176cf9ee3261933eedc36e4d010fd62b36c9 (patch) | |
tree | 6e01b566503b95ca78e69c784879d85ea11c0fba /chapter06/vim.xml | |
parent | c76accc624f1e3f31072f7645f5faa19ccd697b6 (diff) |
Merging configaration subsections into their corresponding sections.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3245 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/vim.xml')
-rw-r--r-- | chapter06/vim.xml | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/chapter06/vim.xml b/chapter06/vim.xml index fdb2b9d59..fd23e5ef3 100644 --- a/chapter06/vim.xml +++ b/chapter06/vim.xml @@ -61,7 +61,34 @@ installed. For more information read the Vim documentation.</para> </sect2> -&c6-cf-vim; +<sect2><title> </title><para> </para></sect2> + +<sect2><title>Configuring Vim</title> + +<para>By default, <command>vim</command> runs in vi-compatible mode. Some +people might like this, but we prefer to run <command>vim</command> in its +own mode (else we wouldn't have included it in this book, but the original +<command>vi</command>). Create a default vim configuration file by running +the following:</para> + +<screen><userinput>cat > /etc/vimrc << "EOF"</userinput> +" Begin /etc/vimrc + +set nocompatible +set backspace=2 +syntax on + +" End /etc/vimrc +<userinput>EOF</userinput></screen> + +<para>The <emphasis>set nocompatible</emphasis> will make +<command>vim</command> behave in a more useful way than the default +vi-compatible manner. The <emphasis>set backspace=2</emphasis> allows +backspacing over line breaks, autoindent and the start of insert. And the +<emphasis>syntax on</emphasis> switches on <command>vim</command>'s +semantic colouring.</para> + +</sect2> &aa-vim-shortdesc; &aa-vim-desc; |