1
0

vim-inst.xml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 don't like vim to be installed as an editor on your LFS system,
  7. you may want to download an alternative and install the editor you
  8. prefer. There are a few hints on how to install different editors
  9. available at <ulink url="http://hints.linuxfromscratch.org/hints.shtml#editors"/>.
  10. Currently there are hints for Emacs, joe, and nano.</para>
  11. <para>Install Vim by running the following commands:</para>
  12. <para><screen><userinput>patch -Np1 -i ../vim-&vim-version;.patch &amp;&amp;
  13. ./configure --prefix=/usr &amp;&amp;
  14. make CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\" &amp;&amp;
  15. make install &amp;&amp;
  16. ln -sf vim /usr/bin/vi</userinput></screen></para>
  17. <para>If you plan to install the X Window system on your LFS
  18. system, you might want to re-compile Vim after you have installed X. Vim
  19. comes with a nice GUI version of the editor which requires X and a few
  20. other libraries to be installed. For more information read the Vim
  21. documentation.</para>
  22. </sect2>
  23. <sect2>
  24. <title>FHS compliance notes</title>
  25. <para>The FHS says that editors like vim should use /var/lib/&lt;editor&gt;
  26. for their temporary state files, like temporary save files for example.
  27. If you wish vim to conform to the FHS, you should use this command set
  28. instead of the one presented above:</para>
  29. <para><screen><userinput>patch -Np1 -i ../vim-&vim-version;.patch &amp;&amp;
  30. ./configure --prefix=/usr --localstatedir=/var/lib/vim &amp;&amp;
  31. make CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\" &amp;&amp;
  32. make install &amp;&amp;
  33. ln -sf vim /usr/bin/vi</userinput></screen></para>
  34. </sect2>