vim-inst.xml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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>
  22. <sect2>
  23. <title>FHS compliance notes</title>
  24. <para>The FHS says that editors like vim should use /var/lib/&lt;editor&gt;
  25. for their temporary state files, like temporary save files for example.
  26. If you wish vim to conform to the FHS, you should use this command set
  27. instead of the one presented above:</para>
  28. <para><screen><userinput>patch -Np1 -i ../vim-&vim-patch-version;.patch &amp;&amp;
  29. ./configure --prefix=/usr --localstatedir=/var/lib/vim &amp;&amp;
  30. make CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\" &amp;&amp;
  31. make install &amp;&amp;
  32. ln -s vim /usr/bin/vi</userinput></screen></para>
  33. </sect2>