vim-inst.xml 1.0 KB

12345678910111213141516171819202122232425262728
  1. <sect2>
  2. <title>Installation of Vim</title>
  3. <para>This package requires its patch to be applied before you can
  4. install it. Make sure it's unpacked before running the installation
  5. commands.</para>
  6. <para>If you not wish to install Vim, build instructions for
  7. alternative editors are available at
  8. <ulink url="&blfs-root;view/cvs/postlfs/editors.html"/>.
  9. Currently, there are instructions for Emacs, nano, and joe.</para>
  10. <para>Install Vim by running the following commands:</para>
  11. <para><screen><userinput>patch -Np1 -i ../vim-&vim-patch-version;.patch &amp;&amp;
  12. ./configure --prefix=/usr &amp;&amp;
  13. make CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\" &amp;&amp;
  14. make install &amp;&amp;
  15. ln -s vim /usr/bin/vi</userinput></screen></para>
  16. <para>If you plan to install the X Window system on your LFS
  17. system, you might want to re-compile Vim after you have installed X. Vim
  18. comes with a nice GUI version of the editor which requires X and a few
  19. other libraries to be installed. For more information read the Vim
  20. documentation.</para>
  21. </sect2>