[6370fa6] | 1 | <sect2>
|
---|
| 2 | <title>Installation of Vim</title>
|
---|
| 3 |
|
---|
[b822811] | 4 | <para>If you don't like vim to be installed as an editor on the LFS system,
|
---|
[0c4eb2c] | 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
|
---|
[6370fa6] | 7 | available at <ulink
|
---|
[b822811] | 8 | url="http://archive.linuxfromscratch.org/lfs-hints/">http://www.archive.linuxfromscratch.org/lfs-hints/</ulink>
|
---|
| 9 | . The hints which are currently available are for Emacs, Joe and nano.</para>
|
---|
[6370fa6] | 10 |
|
---|
[b822811] | 11 | <para>Both the vim-rt and vim-src packages need to be unpacked to install Vim.
|
---|
[4758c7d] | 12 | Both packages will unpack their files into the vim-&vim-version; directory. This
|
---|
[4d994af4] | 13 | won't overwrite any files from the other package. So it doesn't matter
|
---|
[b822811] | 14 | in which order it is done. Install Vim by running the following commands:</para>
|
---|
[6370fa6] | 15 |
|
---|
[b822811] | 16 | <para><screen><userinput>./configure --prefix=/usr &&</userinput>
|
---|
[3229c6b] | 17 | <userinput>make &&</userinput>
|
---|
| 18 | <userinput>make install &&</userinput>
|
---|
| 19 | <userinput>cd /usr/bin &&</userinput>
|
---|
[b822811] | 20 | <userinput>ln -s vim vi</userinput></screen></para>
|
---|
[6370fa6] | 21 |
|
---|
[b822811] | 22 | <para>If you plan on installing the X Window system on your LFS
|
---|
[9e4e34c] | 23 | system, you might want to re-compile Vim after you have installed X. Vim
|
---|
[6370fa6] | 24 | comes with a nice GUI version of the editor which requires X and a few
|
---|
| 25 | other libraries to be installed. For more information read the Vim
|
---|
[b822811] | 26 | documentation.</para>
|
---|
[6370fa6] | 27 |
|
---|
| 28 | </sect2>
|
---|
| 29 |
|
---|
[a8e5938e] | 30 | <sect2>
|
---|
| 31 | <title>FHS compliance notes</title>
|
---|
| 32 |
|
---|
[b822811] | 33 | <para>The FHS says that editors like vim should use /var/lib/<editor>
|
---|
| 34 | for their temporary state files, like temporary save files for example.
|
---|
| 35 | If you wish vim to conform to the FHS, you should use this command set
|
---|
| 36 | instead of the one presented above:</para>
|
---|
[a8e5938e] | 37 |
|
---|
[b822811] | 38 | <para><screen><userinput>./configure --prefix=/usr --localstatedir=/var/lib/vim &&</userinput>
|
---|
[3229c6b] | 39 | <userinput>make &&</userinput>
|
---|
| 40 | <userinput>make install &&</userinput>
|
---|
| 41 | <userinput>cd /usr/bin &&</userinput>
|
---|
| 42 | <userinput>ln -s vim vi &&</userinput>
|
---|
[b822811] | 43 | <userinput>mkdir /var/lib/vim</userinput></screen></para>
|
---|
[a8e5938e] | 44 |
|
---|
| 45 | </sect2>
|
---|
| 46 |
|
---|