config-vim.xml 521 B

12345678910111213141516171819202122
  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. <literallayout>
  9. <userinput>cat &gt; /root/.vimrc &lt;&lt; "EOF"</userinput>
  10. " Begin /root/.vimrc
  11. set nocompatible
  12. set bs=2
  13. " End /root/.vimrc
  14. <userinput>EOF</userinput>
  15. </literallayout>
  16. </sect2>