aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/config-vim.xml
blob: 48a5a05ffb039585cc1aa437f82d18f6f3cb0102 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>

<sect2><title>Configuring Vim</title>

<para>By default, vim runs in vi compatible mode. Some people might like this,
but we have a high preference to run vim in vim mode (else we wouldn't
have included vim in this book, but the original vi). Create the
<filename>/root/.vimrc</filename> by running the following:</para>

<screen><userinput>cat &gt; /root/.vimrc &lt;&lt; "EOF"</userinput>
" Begin /root/.vimrc

set nocompatible
set bs=2

" End /root/.vimrc
<userinput>EOF</userinput></screen>

</sect2>