vim-inst.xml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  2. <sect2>
  3. <title>Installation of Vim</title>
  4. <para>This package requires its patch to be applied before you can
  5. install it. This patch fixes a compile problem with GCC-3.2:</para>
  6. <para><screen><userinput>patch -Np1 -i ../vim-&vim-patch-version;.patch</userinput></screen></para>
  7. <para>Prepare Vim to be compiled:</para>
  8. <para><screen><userinput>./configure --prefix=/usr</userinput></screen></para>
  9. <para>Continue with compiling the package:</para>
  10. <para><screen><userinput>make CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\"</userinput></screen></para>
  11. <para>The meaning of the make option is:</para>
  12. <itemizedlist>
  13. <listitem><para><userinput>CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\"</userinput>:
  14. This option causes vim to look for the <filename>/etc/vimrc</filename> file
  15. which contains vim's global settings. Normally, this file is assumed to be
  16. located in <filename class="directory">/usr/share/vim</filename>, but we
  17. feel that <filename class="directory">/etc</filename> is a more logical
  18. place for this kind of file.</para></listitem>
  19. </itemizedlist>
  20. <para>Finish installing the package:</para>
  21. <para><screen><userinput>make install</userinput></screen></para>
  22. <para>Vim can run in old-fashioned <emphasis>vi</emphasis> mode by
  23. creating a symlink, which may be created with the following command:</para>
  24. <para><screen><userinput>ln -s vim /usr/bin/vi</userinput></screen></para>
  25. <para>If you plan to install the X Window system on your LFS
  26. system, you might want to re-compile Vim after you have installed X. Vim
  27. comes with a nice GUI version of the editor which requires X and a few
  28. other libraries to be installed. For more information read the Vim
  29. documentation.</para>
  30. </sect2>