vim-inst.xml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  2. <sect2>
  3. <title>Installation of Vim</title>
  4. <para>Change the default locations of the <filename>vimrc</filename> and
  5. <filename>gvimrc</filename> files to <filename
  6. class="directory">/etc</filename>.</para>
  7. <para><screen><userinput>echo '#define SYS_VIMRC_FILE "/etc/vimrc"' &gt;&gt; src/feature.h
  8. echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' &gt;&gt; src/feature.h</userinput></screen></para>
  9. <para>Now prepare Vim for compilation:</para>
  10. <para><screen><userinput>./configure --prefix=/usr</userinput></screen></para>
  11. <para>Compile the package:</para>
  12. <para><screen><userinput>make</userinput></screen></para>
  13. <para>And install the package:</para>
  14. <para><screen><userinput>make install</userinput></screen></para>
  15. <para>Vim can run in old-fashioned <emphasis>vi</emphasis> mode by
  16. creating a symlink, which may be created with the following command:</para>
  17. <para><screen><userinput>ln -s vim /usr/bin/vi</userinput></screen></para>
  18. <para>If you plan to install the X Window system on your LFS
  19. system, you might want to re-compile Vim after you have installed X. Vim
  20. comes with a nice GUI version of the editor which requires X and a few
  21. other libraries to be installed. For more information read the Vim
  22. documentation.</para>
  23. </sect2>