vim.xml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <sect1 id="ch06-vim">
  2. <title>Installing Vim-&vim-version;</title>
  3. <?dbhtml filename="vim.html" dir="chapter06"?>
  4. <screen>Estimated build time: &vim-time;
  5. Estimated required disk space: &vim-compsize;</screen>
  6. <sect2>
  7. <title>Alternatives to Vim</title>
  8. <para>If you prefer another editor -- like Emacs, Joe, or Nano -- to Vim,
  9. have a look at <ulink url="&blfs-root;view/stable/postlfs/editors.html"/> for
  10. suggested installation instructions.</para>
  11. </sect2>
  12. &aa-vim-shortdesc;
  13. &aa-vim-dep;
  14. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  15. <sect2>
  16. <title>Installation of Vim</title>
  17. <para>Change the default locations of the <filename>vimrc</filename> and
  18. <filename>gvimrc</filename> files to <filename
  19. class="directory">/etc</filename>.</para>
  20. <screen><userinput>echo '#define SYS_VIMRC_FILE "/etc/vimrc"' &gt;&gt; src/feature.h
  21. echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' &gt;&gt; src/feature.h</userinput></screen>
  22. <para>Now prepare Vim for compilation:</para>
  23. <screen><userinput>./configure --prefix=/usr</userinput></screen>
  24. <para>Compile the package:</para>
  25. <screen><userinput>make</userinput></screen>
  26. <para>And install the package:</para>
  27. <screen><userinput>make install</userinput></screen>
  28. <para>Vim can run in old-fashioned <emphasis>vi</emphasis> mode by
  29. creating a symlink, which may be created with the following command:</para>
  30. <screen><userinput>ln -s vim /usr/bin/vi</userinput></screen>
  31. <para>If you plan to install the X Window system on your LFS
  32. system, you might want to re-compile Vim after you have installed X. Vim
  33. comes with a nice GUI version of the editor which requires X and a few
  34. other libraries to be installed. For more information read the Vim
  35. documentation.</para>
  36. </sect2>
  37. &c6-cf-vim;
  38. </sect1>