diff options
Diffstat (limited to 'chapter06/vim-inst.xml')
-rw-r--r-- | chapter06/vim-inst.xml | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/chapter06/vim-inst.xml b/chapter06/vim-inst.xml index 86c849913..4650d31b8 100644 --- a/chapter06/vim-inst.xml +++ b/chapter06/vim-inst.xml @@ -3,24 +3,20 @@ <sect2> <title>Installation of Vim</title> +<para>Change the default locations of the <filename>vimrc</filename> and +<filename>gvimrc</filename> files to <filename +class="directory">/etc</filename>.</para> + +<para><screen><userinput>echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h +echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' >> src/feature.h</userinput></screen></para> + <para>Prepare Vim to be compiled:</para> <para><screen><userinput>./configure --prefix=/usr</userinput></screen></para> <para>Continue with compiling the package:</para> -<para><screen><userinput>make CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\"</userinput></screen></para> - -<para>The meaning of the make option is:</para> - -<itemizedlist> -<listitem><para><userinput>CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\"</userinput>: -This option causes vim to look for the <filename>/etc/vimrc</filename> file -which contains vim's global settings. Normally, this file is assumed to be -located in <filename class="directory">/usr/share/vim</filename>, but we -feel that <filename class="directory">/etc</filename> is a more logical -place for this kind of file.</para></listitem> -</itemizedlist> +<para><screen><userinput>make</userinput></screen></para> <para>Finish installing the package:</para> |