| 1234567891011121314151617181920212223242526272829 | <sect2><title> </title><para> </para></sect2><sect2><title>Configuring Vim</title><para>By default, <userinput>vim</userinput> runs in vi-compatible mode. Somepeople might like this, but we prefer to run <userinput>vim</userinput> in itsown mode (else we wouldn't have included it in this book, but the original<userinput>vi</userinput>). 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 <userinput>set nocompatible</userinput> will make<userinput>vim</userinput> behave in a more useful way than the defaultvi-compatible manner. The <userinput>set backspace=2</userinput> allowsbackspacing over line breaks, autoindent and the start of insert. And the<userinput>syntax on</userinput> switches on <userinput>vim</userinput>'ssemantic colouring.</para></sect2>
 |