vim-inst.xml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <sect2>
  2. <title>Installation of Vim</title>
  3. <para>
  4. If you don't like vim to be installed as an editor on your LFS system,
  5. you may want to download an alternative and install an editor you
  6. prefer. There are a few hints how to install different editors
  7. available at <ulink
  8. url="http://cvs.linuxfromscratch.org/index.cgi/hints/editors/">
  9. http://cvs.linuxfromscratch.org/index.cgi/hints/editors/</ulink>
  10. </para>
  11. <para>
  12. You need to unpack both the vim-rt and vim-src packages to install Vim.
  13. Both packages will unpack their files into the vim-5.7 directory. This
  14. won't overwrite any files from the other package. So it doesn't mattter
  15. in which order you do it. Install Vim by running the following commands:
  16. </para>
  17. <blockquote><literallayout>
  18. <userinput>./configure --prefix=/usr &amp;&amp;</userinput>
  19. <userinput>make &amp;&amp;</userinput>
  20. <userinput>make install &amp;&amp;</userinput>
  21. <userinput>cd /usr/bin &amp;&amp;</userinput>
  22. <userinput>ln -s vim vi</userinput>
  23. </literallayout></blockquote>
  24. <para>
  25. If you are planning on installing the X Window system on your LFS
  26. system, you might want to re-compile Vim after you have installed X. Vim
  27. comes with a nice GUI version of the editor which requires X and a few
  28. other libraries to be installed. For more information read the Vim
  29. documentation.
  30. </para>
  31. </sect2>