nano config update

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1228 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
Larry Lawrence 2003-09-28 02:29:25 +00:00
parent c668bd446a
commit dbb3c5cab3
2 changed files with 19 additions and 26 deletions

View File

@ -33,16 +33,11 @@ you do copy anything directly from <filename>/etc/skel</filename>.</para>
<screen>" Begin .vimrc
set nocompatible
set bs=2
set columns=80
set columns=72
set background=dark
set tabstop=8
set wrapmargin=8
set nobk
syntax on
set ruler
set noexpandtab
" End .vimrc</screen>
@ -54,33 +49,18 @@ of the more usual # or //. This is correct, the syntax for <filename>vimrc
<para>We'll run through a quick explanation of what each of the
options in this example file means here:</para>
<itemizedlist>
<listitem><para><userinput>set nocompatible</userinput> : This option
stops <command>vim</command> from behaving in a strongly <command>vi
</command>-compatible way. It should be at the start of any <filename>vimrc
</filename> file as it can affect lots of other options which you may want to
override.</para></listitem>
<listitem><para><userinput>set bs=2</userinput> : This influences the behavior
of the backspace option. It is fairly complex so see <userinput>:help 'bs'
</userinput> for more details.</para></listitem>
<listitem><para><userinput>set columns=80</userinput> : This simply sets the
<listitem><para><userinput>set columns=72</userinput> : This simply sets the
number of columns used on the screen.</para></listitem>
<listitem><para><userinput>set background=dark</userinput> : This tells
<command>vim</command> to use colors which look good on a dark
background.</para></listitem>
<listitem><para><userinput>set tabstop=8</userinput> : The number of spaces
which a tabstop takes.</para></listitem>
<listitem><para><userinput>set wrapmargin=8</userinput> : This is the number of
characters from the right window border where wrapping starts.</para>
</listitem>
<listitem><para><userinput>set nobk</userinput> : This stops <command>vim
</command> from creating a backup before overwriting a file.</para></listitem>
<listitem><para><userinput>syntax on</userinput> : Enables
<command>vim</command>'s syntax highlighting.</para></listitem>
@ -88,9 +68,6 @@ characters from the right window border where wrapping starts.</para>
</command> show the current row and column at the bottom right of
the screen.</para></listitem>
<listitem><para><userinput>set noexpandtab</userinput> : This makes
<command>vim</command> insert tabs as tab characters instead of as a set of
spaces.</para></listitem>
</itemizedlist>

View File

@ -3,6 +3,22 @@
<sect3><title>Config files</title>
<para><filename>/etc/nanorc</filename>, <filename>~/.nanorc</filename></para>
</sect3>
<para>Example Configuration</para>
<screen><userinput>set autoindent
set const
set fill 72
set historylog
set multibuffer
set nohelp
set regexp
set smooth
set suspend</userinput></screen>
<para>Another example is in the source directory in the
<filename>nanorc.sample</filename> file. It includes color
configurations and has some documentation included in the
comments.</para>
</sect3>
</sect2>