vim.xml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <sect1 id="ch06-vim">
  2. <title>Installing Vim-&vim-version;</title>
  3. <?dbhtml filename="vim.html" dir="chapter06"?>
  4. <screen>Estimated build time: &vim-time;
  5. Estimated required disk space: &vim-compsize;</screen>
  6. <sect2>
  7. <title>Alternatives to Vim</title>
  8. <para>If you prefer another editor -- like Emacs, Joe, or Nano -- to Vim,
  9. have a look at <ulink url="&blfs-root;view/stable/postlfs/editors.html"/> for
  10. suggested installation instructions.</para>
  11. </sect2>
  12. &aa-vim-shortdesc;
  13. &aa-vim-dep;
  14. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  15. <sect2>
  16. <title>Installation of Vim</title>
  17. <para>First change the default locations of the <filename>vimrc</filename> and
  18. <filename>gvimrc</filename> files to <filename
  19. class="directory">/etc</filename>.</para>
  20. <screen><userinput>echo '#define SYS_VIMRC_FILE "/etc/vimrc"' &gt;&gt; src/feature.h
  21. echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' &gt;&gt; src/feature.h</userinput></screen>
  22. <para>Now prepare Vim for compilation:</para>
  23. <screen><userinput>./configure --prefix=/usr</userinput></screen>
  24. <para>Compile the package:</para>
  25. <screen><userinput>make</userinput></screen>
  26. <para>This package has a test suite available which performs a number of
  27. checks to ensure it will function correctly. However, the Vim test suite will
  28. output a whole lot of seemingly garbage characters to screen which can
  29. sometimes wreak havoc with the running terminal. Accordingly, the running of
  30. the test suite here is optional. Should you choose to run the Vim test suite,
  31. the following command will do so:</para>
  32. <screen><userinput>make test</userinput></screen>
  33. <para>And install the package:</para>
  34. <screen><userinput>make install</userinput></screen>
  35. <para>When called as <userinput>vi</userinput>, <userinput>vim</userinput>
  36. will run in old-fashioned vi-mode. To allow this, create a symlink:</para>
  37. <screen><userinput>ln -s vim /usr/bin/vi</userinput></screen>
  38. <para>If you are going to install the X Window system on your LFS system, you
  39. may want to re-compile Vim after having installed X. Vim comes with a nice GUI
  40. version of the editor that requires X and a few other libraries to be
  41. installed. For more information read the Vim documentation.</para>
  42. </sect2>
  43. &c6-cf-vim;
  44. </sect1>