Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Practical work 2.doc
Скачиваний:
0
Добавлен:
01.05.2025
Размер:
113.15 Кб
Скачать

2.5 Additional Options

Setting parameters with the command: set. It has the following modifications:

•: set - shows all options whose values ​​differ from their default values​​;

•: set all - shows all the options, except the terminal;

•: set termcap - shows only terminal options;

•: set {option}? - shows the value of the option {option};

•: set {option} - if {option} - logical, it sets it to a state "on", otherwise it shows the value of;

•: set no {option} - sets the option to a state "off";

•: set {option}! - Inverts the value of the option;

•: set {option} & - sets the value of the option at its default value;

•: set {option} = {value} - sets the value of the option equal to {value}.

Values ​​of key parameters are shown in Table 2.2.

Table 2.3 – Set parameters editor vim

Value

Abbre-viation

Type

Description

autoindent

ai

trigger

When you start a new row is copied from the previous indentation

autowrite

aw

trigger

Saves the contents of the file if it has been changed before executing some commands

backup

bk

trigger

Creates a backup file before overwriting. Leaves it after successful completion of the recording.

backupcopy

bkc

line

Determines the method of backup: "yes" - copies an existing file and overwrites it; "no" - rename the existing file and creates a new, "auto" - select the best option.

binary

bin

trigger

This option must be set before attempting to edit binary files

dictionary

dict

line

List of files, separated by commas. For these files are searched in auto-completion of keywords (<CTRL>-X + <CTRL>-K).

Table continued 2.2

display

dy

line

Changes the way the display of text. Is a comma-separated list of flags: "lastline" - if the last line in the window can not be displayed in full, you can see part of it, otherwise it is replaced by the symbol "@"; "uhex" - non-printable characters are displayed in hex as < xx>, instead of using ^ C and ~ C.

errorfile

ef

line

Name the file with errors in fast debugging

errorformat

efm

line

Description of the format string the error file, written in the style of scanf

fileencoding

fenc

line

Encoding of the current file

fileformat

ff

line

The format of the current file

foldclose

fcl

line

If equal "all", then the group will be closed automatically when the cursor goes beyond them.

foldmethod

fdm

line

Determines the grouping for the current window: "manual" - manual grouping; "indent" - grouped strings with the same indentation; "expr" - grouping level is determined by the evaluation of the expression; "marker" - grouping in accordance with markers; "syntax" - grouped elements with syntax highlighting; "diff" - grouped text contains no changes

ignorecase

ic

trigger

Ignore case when searching

makeef

mef

line

File name errors when you run: make.

makeprg

mp

line

The program used the command: make.

modeline

ml

logical.

Includes direct connection configuration lines in the file being edited

shiftwidth

sw

number

The number of spaces used for autoindent.

showbreak

sbr

line

Characters that are designated automatically transferred line

showmatch

sm

trigger

If set, then type the closing parenthesis is rapid illumination corresponding opening bracket

tabstop

ts

number

Tab Size

textwidth

tw

number

The maximum number of characters that can be entered in one line. If set to 0, this feature is disabled

thesaurus

tsr

line

List of files, which searches for entries. (<CTRL> + X + <CTRL> + T)

undolevels

ul

number

The maximum number of changes that can be undone

visualbell

vb

trigger

Replace visual alarm

Table continued 2.2

wrap

-

trigger

Defines the display of text. Immediate changes to the opened file is not made. When the parameter is set, the line is longer than the window displays in the following lines and cut. Otherwise see only part of the string

writebackup

wb

trigger

When overwriting a file, it creates a temporary copy so under no circumstances be affected your present. After a successful backup overwrite deleted

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]