2001-01-24 00:31:17 +00:00
|
|
|
<sect2><title>Configuring Vim</title>
|
|
|
|
|
2002-06-03 12:27:19 +01:00
|
|
|
<para>By default vim runs in vi compatible mode. Some people might like this,
|
2001-04-25 22:21:54 +01:00
|
|
|
but we have a high preference to run vim in vim mode (else we wouldn't
|
2002-06-03 12:27:19 +01:00
|
|
|
have included vim in this book, but the original vi). Create the
|
2001-07-22 20:45:10 +01:00
|
|
|
<filename>/root/.vimrc</filename> by running the following:</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para><screen><userinput>cat > /root/.vimrc << "EOF"</userinput>
|
2001-01-24 00:31:17 +00:00
|
|
|
" Begin /root/.vimrc
|
|
|
|
|
|
|
|
set nocompatible
|
|
|
|
set bs=2
|
|
|
|
|
|
|
|
" End /root/.vimrc
|
2001-07-22 20:45:10 +01:00
|
|
|
<userinput>EOF</userinput></screen></para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|