| 1234567891011121314151617181920212223242526272829 | <sect2><title> </title><para> </para></sect2><sect2><title>Configuring Vim</title><para>By default, <command>vim</command> runs in vi-compatible mode. Somepeople might like this, but we prefer to run <command>vim</command> in itsown mode (else we wouldn't have included it in this book, but the original<command>vi</command>). Create a default vim configuration file by runningthe following:</para><screen><userinput>cat > /etc/vimrc << "EOF"</userinput>" Begin /etc/vimrcset nocompatibleset backspace=2syntax 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 defaultvi-compatible manner. The <emphasis>set backspace=2</emphasis> allowsbackspacing over line breaks, autoindent and the start of insert. And the<emphasis>syntax on</emphasis> switches on <command>vim</command>'ssemantic colouring.</para></sect2>
 |