Changeset 8ad7980 for chapter06/vim.xml
- Timestamp:
- 06/19/2004 01:39:28 PM (20 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- f67f5cf
- Parents:
- ef57e3b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/vim.xml
ref57e3b r8ad7980 50 50 51 51 <para>The optional but highly recommended 52 < userinput>--enable-multibyte</userinput> switch52 <parameter>--enable-multibyte</parameter> switch 53 53 includes support for editing files in multibyte character encodings into 54 54 <command>vim</command>. … … 93 93 people might not like this, but we prefer to run <command>vim</command> in its 94 94 own mode (else we wouldn't have included it in this book, but the original 95 <command>vi</command>). We've included the setting of "nocompatible"95 <command>vi</command>). We've included the setting of <quote>nocompatible</quote> 96 96 below to high-light the fact that the new behavior is being used. It 97 also reminds those who would change to "compatible"mode that it should97 also reminds those who would change to <quote>compatible</quote> mode that it should 98 98 appear first because it changes other settings and overrides must come 99 99 after this setting. Create a default vim configuration file by running 100 100 the following:</para> 101 101 102 <screen><userinput>cat > /etc/vimrc << "EOF" </userinput>102 <screen><userinput>cat > /etc/vimrc << "EOF" 103 103 " Begin /etc/vimrc 104 104 … … 106 106 set backspace=2 107 107 syntax on 108 <!-- set fileencodings=ucs-bom,utf-8,<replaceable> your-8-bit-charset</replaceable> -->108 <!-- set fileencodings=ucs-bom,utf-8,<replaceable>[your-8-bit-charset]</replaceable> --> 109 109 if (&term == "iterm") || (&term == "putty") 110 110 set background=dark … … 112 112 113 113 " End /etc/vimrc 114 <userinput>EOF</userinput></screen>115 116 <para>The < emphasis>set nocompatible</emphasis> makes114 EOF</userinput></screen> 115 116 <para>The <parameter>set nocompatible</parameter> makes 117 117 <command>vim</command> behave in a more useful way (the default) than the 118 vi-compatible manner. Remove the "no"if you want the old <command>vi</command>119 behavior. The < emphasis>set backspace=2</emphasis> allows118 vi-compatible manner. Remove the <quote>no</quote> if you want the old <command>vi</command> 119 behavior. The <parameter>set backspace=2</parameter> allows 120 120 backspacing over line breaks, autoindents and the start of insert. The 121 < emphasis>syntax on</emphasis> enables <command>vim</command>'s121 <parameter>syntax on</parameter> enables <command>vim</command>'s 122 122 syntax highliting. 123 123 <!-- XXX: the ascii-only files are considered to be in utf-8 - that's not what 124 124 one expects . That's why fileencodings stuff is commented out for now 125 125 126 The < emphasis>set fileencodings=...</emphasis> makes126 The <parameter>set fileencodings=...</parameter> makes 127 127 <command>vim</command> capable of automatically detecting the character 128 128 set of the file being edited (replace 129 "<replaceable> your-8-bit-charset</replaceable>"129 "<replaceable>[your-8-bit-charset]</replaceable>" 130 130 with the value appropriate for your country, e.g. iso-8859-15 in Italy). 131 131 This line is useful because bleeding-edge distributions 132 132 like Fedora Core use UTF-8, and conservative ones like Debian 133 133 use traditional 8-bit encodings for text files. If you have not 134 passed the < option>- -enable-multibyte</option> switch to the134 passed the <parameter>- -enable-multibyte</parameter> switch to the 135 135 <command>./configure</command> command above, this line will not work. --> 136 136 Finally, the <emphasis>if</emphasis> statement with the 137 < emphasis>set background=dark</emphasis> corrects <command>vim</command>'s137 <parameter>set background=dark</parameter> corrects <command>vim</command>'s 138 138 guess about the background color of some terminal emulators. This gives the 139 139 highliting a better color scheme for use on the black background of … … 165 165 <listitem> 166 166 <indexterm zone="ch-system-vim efm_filter.pl"><primary sortas="b-efm_filter.pl">efm_filter.pl</primary></indexterm> 167 <para>is a filter for creating an error file that can be read by vim.</para>167 <para>is a filter for creating an error file that can be read by <command>vim</command>.</para> 168 168 </listitem> 169 169 </varlistentry> … … 174 174 <indexterm zone="ch-system-vim efm_perl.pl"><primary sortas="b-efm_perl.pl">efm_perl.pl</primary></indexterm> 175 175 <para>reformats the error messages of the 176 Perl interpreter for use with the <quote>quickfix</quote> mode of vim.</para>176 Perl interpreter for use with the <quote>quickfix</quote> mode of <command>vim</command>.</para> 177 177 </listitem> 178 178 </varlistentry> … … 182 182 <listitem> 183 183 <indexterm zone="ch-system-vim ex"><primary sortas="b-ex">ex</primary></indexterm> 184 <para>starts vimin ex mode.</para>184 <para>starts <command>vim</command> in ex mode.</para> 185 185 </listitem> 186 186 </varlistentry> … … 190 190 <listitem> 191 191 <indexterm zone="ch-system-vim less.sh"><primary sortas="b-less.sh">less.sh</primary></indexterm> 192 <para>is a script that starts vimwith less.vim.</para>192 <para>is a script that starts <command>vim</command> with less.vim.</para> 193 193 </listitem> 194 194 </varlistentry> … … 198 198 <listitem> 199 199 <indexterm zone="ch-system-vim mve.awk"><primary sortas="b-mve.awk">mve.awk</primary></indexterm> 200 <para>processes vimerrors.</para>200 <para>processes <command>vim</command> errors.</para> 201 201 </listitem> 202 202 </varlistentry> … … 206 206 <listitem> 207 207 <indexterm zone="ch-system-vim pltags.pl"><primary sortas="b-pltags.pl">pltags.pl</primary></indexterm> 208 <para>creates a tags file for perl code, for use by vim.</para>208 <para>creates a tags file for Perl code, for use by <command>vim</command>.</para> 209 209 </listitem> 210 210 </varlistentry> … … 222 222 <listitem> 223 223 <indexterm zone="ch-system-vim rview"><primary sortas="b-rview">rview</primary></indexterm> 224 <para>is a restricted version of view: no shell225 commands can be started and viewcan't be suspended.</para>224 <para>is a restricted version of <command>view</command>: no shell 225 commands can be started and <command>view</command> can't be suspended.</para> 226 226 </listitem> 227 227 </varlistentry> … … 231 231 <listitem> 232 232 <indexterm zone="ch-system-vim rvim"><primary sortas="b-rvim">rvim</primary></indexterm> 233 <para>is a restricted version of vim: no shell234 commands can be started and vimcan't be suspended.</para>233 <para>is a restricted version of <command>vim</command>: no shell 234 commands can be started and <command>vim</command> can't be suspended.</para> 235 235 </listitem> 236 236 </varlistentry> … … 240 240 <listitem> 241 241 <indexterm zone="ch-system-vim shtags.pl"><primary sortas="b-shtags.pl">shtags.pl</primary></indexterm> 242 <para>generates a tag file for perl scripts.</para>242 <para>generates a tag file for Perl scripts.</para> 243 243 </listitem> 244 244 </varlistentry> … … 256 256 <listitem> 257 257 <indexterm zone="ch-system-vim view"><primary sortas="b-view">view</primary></indexterm> 258 <para>starts vimin read-only mode.</para>258 <para>starts <command>vim</command> in read-only mode.</para> 259 259 </listitem> 260 260 </varlistentry> … … 272 272 <listitem> 273 273 <indexterm zone="ch-system-vim vim132"><primary sortas="b-vim132">vim132</primary></indexterm> 274 <para>starts vimwith the terminal in 132-column mode.</para>274 <para>starts <command>vim</command> with the terminal in 132-column mode.</para> 275 275 </listitem> 276 276 </varlistentry> … … 280 280 <listitem> 281 281 <indexterm zone="ch-system-vim vim2html.pl"><primary sortas="b-vim2html.pl">vim2html.pl</primary></indexterm> 282 <para>converts vim documentation to HTML.</para>282 <para>converts Vim documentation to HTML.</para> 283 283 </listitem> 284 284 </varlistentry> … … 288 288 <listitem> 289 289 <indexterm zone="ch-system-vim vimdiff"><primary sortas="b-vimdiff">vimdiff</primary></indexterm> 290 <para>edits two or three versions of a file with vimand show differences.</para>290 <para>edits two or three versions of a file with <command>vim</command> and show differences.</para> 291 291 </listitem> 292 292 </varlistentry> … … 305 305 <indexterm zone="ch-system-vim vimspell.sh"><primary sortas="b-vimspell.sh">vimspell.sh</primary></indexterm> 306 306 <para>is a script which spells a file and generates the syntax statements necessary 307 to highlight in vim. This script requires the old Unix <command>spell</command>307 to highlight in <command>vim</command>. This script requires the old Unix <command>spell</command> 308 308 command, which is provided neither in LFS nor in BLFS.</para> 309 309 </listitem> … … 314 314 <listitem> 315 315 <indexterm zone="ch-system-vim vimtutor"><primary sortas="b-vimtutor">vimtutor</primary></indexterm> 316 <para>teaches you the basic keys and commands of vim.</para>316 <para>teaches you the basic keys and commands of <command>vim</command>.</para> 317 317 </listitem> 318 318 </varlistentry>
Note:
See TracChangeset
for help on using the changeset viewer.