vim-inst.xml 1.5 KB

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