config-vim.xml 575 B

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