config-vim.xml 516 B

123456789101112131415161718
  1. <sect2><title>Configuring Vim</title>
  2. <para>By default Vim runs in vi compatible mode. Some people might like this,
  3. but we have a high preference to run vim in vim mode (else we wouldn't
  4. have included Vim in this book but the original Vi). Create the
  5. <filename>/root/.vimrc</filename> by running the following:</para>
  6. <para><screen><userinput>cat &gt; /root/.vimrc &lt;&lt; "EOF"</userinput>
  7. " Begin /root/.vimrc
  8. set nocompatible
  9. set bs=2
  10. " End /root/.vimrc
  11. <userinput>EOF</userinput></screen></para>
  12. </sect2>