vim.xml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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-desc;
  14. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  15. <sect2>
  16. <title>Installation of Vim</title>
  17. <para>First 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>When called as <userinput>vi</userinput>, <userinput>vim</userinput>
  29. will run in old-fashioned vi-mode. To allow this, create a symlink:</para>
  30. <screen><userinput>ln -s vim /usr/bin/vi</userinput></screen>
  31. <para>If you are going to install the X Window system on your LFS system, you
  32. may want to re-compile Vim after having installed X. Vim comes with a nice GUI
  33. version of the editor that requires X and a few other libraries to be
  34. installed. For more information read the Vim documentation.</para>
  35. </sect2>
  36. &c6-cf-vim;
  37. </sect1>