aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/config-vim.xml
blob: 4e8146aa12f04c12a90d58fc5527e1aeb41ef710 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<sect2><title>Configuring Vim</title>

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

<literallayout>

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

set nocompatible
set bs=2

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

</literallayout>

</sect2>