config-vim.xml 522 B

123456789101112131415161718192021222324
  1. <sect2><title>Configuring Vim</title>
  2. <para>
  3. 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:
  7. </para>
  8. <para>
  9. <screen>
  10. <userinput>cat &gt; /root/.vimrc &lt;&lt; "EOF"</userinput>
  11. " Begin /root/.vimrc
  12. set nocompatible
  13. set bs=2
  14. " End /root/.vimrc
  15. <userinput>EOF</userinput>
  16. </screen>
  17. </para>
  18. </sect2>