Vim USR DOC --- No.1 ---

xiaoxiao2021-03-06  65

USR_01

* USR_01.txt * for Vim Version 6.3. Recent Update: June 2004

VIM USER MANUAL - Author: Bram Moolenaar

(Translator: nek_in http://vimcdoc.sf.net)

About this manual

This chapter introduces VIM manual itself. Readers can learn how this manual explains the vim command.

| 01.1 | Two parts of the manual

| 01.2 | After installed Vim

| 01.3 | Tutorial instructions

| 01.4 | Copyright Notice

Next chapter: | usr_02.txt | Vim preliminary

Directory: | USR_TOC.TXT |

* 01.1 * Two parts of the manual

VIM's manual is divided into two parts:

User manual

The instruction manual for tasks is read from the end from the head as a simple, like a book.

2. Reference Manual

Detailed information describing each command of Vim.

For the symbols used in this manual, see: | Notation |

Jump

A text including a hyperlink allows you to quickly jump between a command description and the detailed description of the command.

You can implement this function using the following two commands:

Press Ctrl-] Jump to the related topic of words under the current cursor

Press CTRL-O to return (repeating this operation)

Most of the links are placed between two vertical lines, such as: | BAR |. In addition, 'Number' form of option names, with double quotes

The command ": Write" or any other word can be used as a hyperlink. Do not do the following test: put the light

Move to ctrl-] and press Ctrl-].

Other topics can be found with "Help", see | Help.txt |.

* 01.2 * After installed Vim

Most of this manual assume that Vim has been installed normally. If there is not yet, or it is not running (example

If you can't find the file or the GUI mode, the menu is not displayed, etc.). Please read the chapter on the installation:

USR_90.txt |.

* not-compatible *

This manual also assumes that the VIM runs in the VI-Compatory option to close. Most of the orders,

This is irrelevant, but sometimes it is very important. For example, multi-level UNDO features are like this. There is a simple method

You can guarantee that your VIM setting is normal - copy VIM's own VIMRC paradigm. With this method, you don't have to

Know where this file is, just know that you use the system type:

For UNIX:

:! CP -I $ VIMRUNTIME / VIMRC_EXAMPLE.VIM ~ / .VIMRC

For MS-DOS, MS-Windows, OS / 2:

:! COPY $ VIMRUNTIME / VIMRC_EXAMPLE.VIM $ VIM / _VIMRC

For Amiga:

:! Copy $ VIMRUNTIME / VIMRC_EXAMPLE.VIM $ VIM / .VIMRC

If this file already exists, you'd better backed up.

Now start VIM, 'compatible' options should be closed. You can check with the following command:

: SET COMPATIBLE?

If the VIM reports "Nocompatible", everything is normal; if you return "Compatible", there is a problem. At this time you need

To check why this problem occurs. One may be VIM can't find your profile. Use the following command to check

Check:

: scriptnames

If your file is not in the list, check the location and file name of the file. If it is in the list, you must have a place to set the 'compatible' option.

Reference | VIMRC | and | Compatible-Default | You can get more information.

Note:

This manual is about Vim of ordinary form. Vim has a form called "Easy Vim), that is also

Vim, but it is set to "click and enter" style, just like Notepad. It is always in "insert

Into "State, I feel completely different from Vim under the usual form. Because it is more simple, it will not be in this manual.

description. For more information, please refer to | evim-keys |.

* 01.3 * Tutorial instructions * tutor * * vimtutor *

In addition to reading the text (annoying!), You can also learn the basic vim command with the Vimtutor (Vim tutorial), this is a

30 minutes tutorial, it can teach most of the basic VIM features.

In UNIX and MS-Windows, if the Vim is installed normally, you can run the following command from the command line:

vimtutor

This command creates a copy of the tutorial file, you can modify it anything without worrying about the original file.

This textbook has a variety of languages. To find these versions, add the other language after the commands you need

abbreviation. For example, for French versions:

Vimtutor fr

In a non-UNIX system, you have to do some work:

1. Copy the tutorial file. You can use Vim to complete this work (Vim know the location of the file)

Vim -u none -c 'e $ VIMRUNTIME / TUTOR / TUTOR'-C 'W! Tutorcopy' -C 'q'

This command creates a "tutorcopy" file under the current path. To use other languages,

After the file name, add a double letter language abbreviation as an extension. For French:

Vim -u none -c 'e $ vimruntime / tutor / tutor.fr' -c 'w! tutorcopy' -c 'q'

2. Edit this copy file with Vim

Vim -u none -c "set nocp" tutorcopy

Several other parameters are used to ensure that VIM starts using the correct mode.

3. Remove the temporary copy file after learning

Del tutorcopy

* 01.4 * Copyright Notice * Manual-Copyright *

The VIM user manual and the copyright of the reference manual (1988-2002) are all all of BRAM MOOLENAAR. This material can only be in line with

Open Publication License 1.0 or later releases under conditions. This agreement

The final version can be found on the following address:

http://www.opencontent.org/opl.shtml

Person who contribute to this document must agree to this statement.

* fromBook *

Part of this document comes from Steve Oualline's "VI Improved - Vim" (New Riders Publishing,

ISBN: 0735710015). The open release version agreement also applies to this book. The selected part has passed through cut (example

If the illustration is removed, modify according to the new features of Vim 6.0 and correct some errors). Some parts are omitted

| FromBook | Tag, this does not mean that these parts are not from this book. Thank Steve Oualline and New Riders to write and publish this book and release it under the OPL protocol!

It has played a lot of role in writing this manual. It doesn't just provide a text description, and it has also determined the base of this manual.

Control style.

If you earn money by selling this manual, we strongly recommend that you donate some profits to the HIV victims of Uganda.

(See | ICCF |)

(Translator Note: Here is the translation of the original protocol, copyright in Chinese translation, please refer to Vimcdoc's license file)

转载请注明原文地址:https://www.9cbs.com/read-111961.html

New Post(0)