[3be4d97] | 1 | <sect1 id="ch-system-vim" xreflabel="Vim">
|
---|
[793c2f7] | 2 | <title>Installing Vim-&vim-version;</title>
|
---|
[576e206] | 3 | <?dbhtml filename="vim.html" dir="chapter06"?>
|
---|
[6370fa6] | 4 |
|
---|
[5888299] | 5 | <para>The Vim package contains a powerful text editor.</para>
|
---|
| 6 |
|
---|
[69276a94] | 7 | <screen>&buildtime; &vim-time;
|
---|
| 8 | &diskspace; &vim-compsize;</screen>
|
---|
[3554fa3a] | 9 |
|
---|
[5888299] | 10 | &aa-vim-down;
|
---|
| 11 | &aa-vim-dep;
|
---|
| 12 |
|
---|
| 13 | <sect2><title> </title><para> </para></sect2>
|
---|
| 14 |
|
---|
[35c2fa60] | 15 | <sect2>
|
---|
| 16 | <title>Alternatives to Vim</title>
|
---|
| 17 | <para>If you prefer another editor -- like Emacs, Joe, or Nano -- to Vim,
|
---|
[f861982] | 18 | have a look at <ulink url="&blfs-root;view/stable/postlfs/editors.html"/> for
|
---|
[35c2fa60] | 19 | suggested installation instructions.</para>
|
---|
| 20 | </sect2>
|
---|
| 21 |
|
---|
[73aedd1d] | 22 | <sect2><title> </title><para> </para></sect2>
|
---|
| 23 |
|
---|
| 24 | <sect2>
|
---|
| 25 | <title>Installation of Vim</title>
|
---|
| 26 |
|
---|
[0ba2766b] | 27 | <para>First change the default locations of the <filename>vimrc</filename> and
|
---|
[73aedd1d] | 28 | <filename>gvimrc</filename> files to <filename
|
---|
| 29 | class="directory">/etc</filename>.</para>
|
---|
| 30 |
|
---|
| 31 | <screen><userinput>echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h
|
---|
| 32 | echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' >> src/feature.h</userinput></screen>
|
---|
| 33 |
|
---|
| 34 | <para>Now prepare Vim for compilation:</para>
|
---|
| 35 |
|
---|
| 36 | <screen><userinput>./configure --prefix=/usr</userinput></screen>
|
---|
| 37 |
|
---|
| 38 | <para>Compile the package:</para>
|
---|
| 39 |
|
---|
| 40 | <screen><userinput>make</userinput></screen>
|
---|
| 41 |
|
---|
[1a73ed4] | 42 | <para>This package has a test suite available which performs a number of
|
---|
| 43 | checks to ensure it will function correctly. However, the Vim test suite will
|
---|
| 44 | output a whole lot of seemingly garbage characters to screen which can
|
---|
[d0a6c4c] | 45 | occasionally wreak havoc with the running terminal. Accordingly, the running of
|
---|
[1a73ed4] | 46 | the test suite here is optional. Should you choose to run the Vim test suite,
|
---|
| 47 | the following command will do so:</para>
|
---|
| 48 |
|
---|
| 49 | <screen><userinput>make test</userinput></screen>
|
---|
| 50 |
|
---|
[73aedd1d] | 51 | <para>And install the package:</para>
|
---|
| 52 |
|
---|
| 53 | <screen><userinput>make install</userinput></screen>
|
---|
| 54 |
|
---|
[0ba2766b] | 55 | <para>When called as <userinput>vi</userinput>, <userinput>vim</userinput>
|
---|
| 56 | will run in old-fashioned vi-mode. To allow this, create a symlink:</para>
|
---|
[73aedd1d] | 57 |
|
---|
| 58 | <screen><userinput>ln -s vim /usr/bin/vi</userinput></screen>
|
---|
| 59 |
|
---|
[0ba2766b] | 60 | <para>If you are going to install the X Window system on your LFS system, you
|
---|
| 61 | may want to re-compile Vim after having installed X. Vim comes with a nice GUI
|
---|
| 62 | version of the editor that requires X and a few other libraries to be
|
---|
| 63 | installed. For more information read the Vim documentation.</para>
|
---|
[73aedd1d] | 64 |
|
---|
| 65 | </sect2>
|
---|
[0ba2766b] | 66 |
|
---|
[49f4dd5] | 67 | &c6-cf-vim;
|
---|
[0ba2766b] | 68 |
|
---|
[5888299] | 69 | &aa-vim-shortdesc;
|
---|
| 70 | &aa-vim-desc;
|
---|
| 71 |
|
---|
[6370fa6] | 72 | </sect1>
|
---|
[73aedd1d] | 73 |
|
---|