vim-inst.xml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <sect2>
  2. <title>Installation of Vim</title>
  3. <para>
  4. If a user doesn't like vim to be installed as an editor on the LFS system,
  5. he may want to download an alternative and install an editor he
  6. prefers. 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. Both the vim-rt and vim-src packages need to be unpacked 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 matter
  15. in which order it is done. 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 a user plans on installing the X Window system on his LFS
  26. system, he might want to re-compile Vim after he has 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>