annotate runtime/tutor/tutor.ru.cp1251 @ 6314:df92c2b2a179 v7.4.490

updated for version 7.4.490 Problem: Cannot specify the buffer to use for "do" and "dp", making them useless for three-way diff. Solution: Use the count as the buffer number. (James McCoy)
author Bram Moolenaar <bram@vim.org>
date Fri, 31 Oct 2014 13:54:25 +0100
parents 31f7581068a9
children 28ac7914b2b6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 ===============================================================================
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
2 = Д о б р о п о ж а л о в а т ь в у ч е б н и к VIM -- версия 1.7 =
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 ===============================================================================
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
4
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
5 Vim -- это очень мощный редактор, имеющий множество команд, слишком много
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
6 для того, чтобы их все можно было описать в таком учебнике, как этот.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
7 Этот учебник призван объяснить достаточное число команд для того, чтобы
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
8 вы могли с лёгкостью использовать Vim в качестве редактора общего
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 назначения.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 Вам потребуется приблизительно 25-30 минут на освоение данного учебника в
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
12 зависимости от того, сколько времени вы потратите на эксперименты.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
14 Внимание! Командами в уроках вы будете изменять этот текст. Создайте
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
15 копию этого файла, чтобы попрактиковаться на ней (если вы запустили
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
16 "vimtutor", то это уже копия).
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 Важно помнить, что этот учебник предназначен для обучения в процессе
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
19 использования. Это означает, что вы должны запускать команды для того,
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
20 чтобы как следует их изучить. Если вы просто прочитаете этот текст, то
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
21 не запомните команды!
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
23 Теперь убедитесь в том, что клавиша CapsLock не включена, и нажмите
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
24 клавишу j несколько раз, так, чтобы Урок 1.1 полностью поместился на
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 экране.
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
26
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
28 Урок 1.1: ПЕРЕМЕЩЕНИЕ КУРСОРА
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
29
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 ** Для перемещения курсора нажмите клавиши h,j,k,l так, как показано ниже. **
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 ^
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 k Советы: Клавиша h находится слева и перемещает влево.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 < h l > Клавиша l находится справа и перемещает вправо.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 j Клавиша j похожа на стрелку `вниз'.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 v
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 1. Подвигайте курсор по экрану, пока не почувствуете себя уверенно.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
39 2. Надавите клавишу `вниз' (j) пока она не начнёт повторяться.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
40 Теперь вы знаете, как перейти к следующему уроку.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 3. Используя клавишу `вниз' перейдите к Уроку 1.2.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
44 Замечание! Если вы пока не уверены в том, что набираете, нажмите <ESC> для
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
45 перехода в обычный режим (Normal mode). После этого перенаберите
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
46 требуемую команду.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
48 Замечание! Обычные клавиши управления курсором (стрелки) также должны
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
49 работать. Однако, клавиши hjkl позволят вам перемещаться
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
50 значительно быстрее, как только вы научитесь ими пользоваться.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
51
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
53 Урок 1.2: ЗАВЕРШЕНИЕ РАБОТЫ С VIM
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
55
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
56 !! ВНИМАНИЕ! Прежде, чем выполнять любой из описанных ниже шагов, прочтите
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 урок целиком !!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
59 1. Нажмите клавишу <ESC> (для того, чтобы удостовериться, что вы в обычном
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 режиме (Normal mode)).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 2. Наберите: :q! <ENTER>.
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
63 (Это означает, что вы должны набрать три символа :q! и нажать клавишу
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
64 ввод.) Это позволит вам выйти из редактора БЕЗ СОХРАНЕНИЯ любых сделанных
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
65 изменений.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
67 3. Когда вы увидите приглашение командной оболочки, наберите команду,
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
68 которая привела вас в этот учебник. Это может быть:
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
69 vimtutor <ENTER>
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
71 4. Если вы уверены в том, что запомнили эти шаги, выполните шаги от 1 до 3
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
72 чтобы выйти снова запустить редактор.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
74 Замечание! :q! <ENTER> отбрасывает любые сделанные вами изменения. Через
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
75 несколько уроков вы узнаете как сохранять изменения в файл.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
77 5. Переместите курсор вниз к Уроку 1.3.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
78
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
80 Урок 1.3: РЕДАКТИРОВАНИЕ ТЕКСТА -- УДАЛЕНИЕ
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
83 ** Находясь в обычном режиме нажмите x для удаления символа под курсором. **
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
85 1. Переместите курсор к строке ниже, помеченной --->.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 2. Для исправления ошибок, переместите курсор, пока он не окажется над
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 удаляемым символом.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
90 3. Нажмите клавишу x для удаления требуемого символа.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
92 4. Повторите шаги со 2 по 4 пока строка не будет исправлена.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 ---> От тттопота копытт пппыль ппо ппполю леттитт.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
96 5. Теперь, когда строка откорректирована, переходите к Уроку 1.4.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
98 Замечание! В ходе освоения этого учебника не пытайтесь запоминать, учите
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
99 в процессе использования.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
102 Урок 1.4: РЕДАКТИРОВАНИЕ ТЕКСТА -- ВСТАВКА
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
105 ** Находясь в обычном режиме, нажмите i для вставки текста. **
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
107 1. Переместите курсор к первой строке ниже, помеченной --->.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 2. Для того, чтобы сделать первую строку идентичной второй, поместите
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 курсор на символ ПЕРЕД которым следует вставить текст.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
112 3. Нажмите i и наберите требуемые добавления.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 4. После исправления всех ошибок нажмите <ESC> для возврата в обычный режим.
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
115 Повторите шаги со 2 по 4, пока фраза не будет исправлена полностью.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
117 ---> Часть текста в строке бесследно .
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 ---> Часть текста в этой строке бесследно пропала.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
120 5. Когда освоите вставку текста, переходите к Уроку 1.5.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
121
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
122 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
123 Урок 1.5: РЕДАКТИРОВАНИЕ ТЕКСТА -- ДОБАВЛЕНИЕ
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
126 ** Находясь в обычном режиме, нажмите A для добавления текста. **
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
127
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
128 1. Переместите курсор к первой строке ниже, помеченной --->.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
129 Не имеет значения на каком символе расположен курсор на этой строке.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
130
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
131 2. Нажмите A и наберите требуемые добавления.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
132
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
133 3. После добавления требуемого текста нажмите <ESC> для возврата в обычный
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
134 режим.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
135
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
136 4. Переместите курсор на следующую строку, помеченную ---> и повторите шаги
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
137 со 2 по 4 для исправления этой строки.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
138
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
139 ---> Часть текста в этой строке бессле
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
140 Часть текста в этой строке бесследно пропала.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
141 ---> Здесь также не достаёт час
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
142 Здесь также не достаёт части текста.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
143
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
144 5. Когда освоите добавление текста, переходите к Уроку 1.6.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
147 Урок 1.6: РЕДАКТИРОВАНИЕ ФАЙЛА
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
148
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
149
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
150 ** Используйте :wq для сохранения файла и выхода из Vim. **
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
151
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
152 !! ВНИМАНИЕ! Прежде, чем выполнять любой из описанных ниже шагов, прочтите
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
153 урок целиком !!
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
154
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
155 1. Выйдите из Vim, как вы это узнали в Уроке 1.2: :q!
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
156 Или, если у вас есть доступ к другому терминалу, можете сделать следующее
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
157 в нём.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
158
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
159 2. По приглашению командной оболочки введите следующую команду:
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
160 vim tutor <ENTER>
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
161 `vim' -- команда для запуска редактора Vim, а `tutor' -- имя файла для
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
162 редактирования. Используете имя файла, который можно изменять.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
163
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
164 3. Вставляйте и удаляйте текст, как вы научились в предыдущих уроках.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
165
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
166 4. Сохраните файл с изменениями и выйдите из Vim выполнив: :wq <ENTER>
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
167
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
168 5. Если вы вышли из vimtutor на шаге 1, перезапустите vimtutor и переходите
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
169 к следующему Резюме.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
170
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
171 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
172 РЕЗЮМЕ УРОКА 1
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
173
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 1. Курсор перемещается либо клавишами со стрелками, либо клавишами hjkl.
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
176 h (влево) j (вниз) k (вверх) l (вправо)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
178 2. Для запуска Vim (из приглашения командной оболочки) наберите:
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
179 vim ИМЯ_ФАЙЛА <ENTER>
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 3. Для завершения работы с Vim наберите:
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
182 <ESC> :q! <ENTER> чтобы отказаться от сохранения изменений.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 Или наберите:
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
184 <ESC> :wq <ENTER> чтобы сохранить изменения.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
186 4. Для удаления символа под курсором в обычном режиме, нажмите: x
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 5. Чтобы вставить текст перед курсором в обычном режиме, наберите:
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
189 i вводите вставляемый текст <ESC>
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
190 Чтобы добавить текст после курсора:
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
191 a вводите добавляемый текст <ESC>
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
193 Замечание! Нажатие <ESC> переместит вас в обычный режим (Normal mode) либо
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
194 прервёт нежелательную и частично завершённую команду.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
196 Теперь переходите к Уроку 2.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
199 Урок 2.1: КОМАНДЫ УДАЛЕНИЯ
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
202 ** Наберите dw для удаления участка текста до конца слова. **
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 1. Нажмите <ESC>, чтобы перейти в обычный режим.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
206 2. Переместите курсор вниз, к строке помеченной --->.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208 3. Переместите курсор в начало слова, которое следует удалить.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
210 4. Наберите dw для удаления этого слова.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
212 Замечание! Во время набора буквы dw появятся справа в самой нижней строке
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
213 экрана. Если вы что-то наберёте неправильно, нажмите <ESC> и начните
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
214 сначала.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216 ---> Несколько слов рафинад в этом предложении автокран излишни.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
218 5. Повторите шаги 3 и 4, пока не исправите все ошибки и переходите к
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219 Уроку 2.2.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
222 Урок 2.2: ДОПОЛНИТЕЛЬНЫЕ КОМАНДЫ УДАЛЕНИЯ
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
224
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
225 ** Наберите d$ для удаления текста до конца строки. **
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
226
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
227 1. Нажмите <ESC>, чтобы перейти в обычный режим.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
229 2. Переместите курсор вниз, к строке помеченной --->.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
230
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
231 3. Переместите курсор к концу правильной строки (ПОСЛЕ первой точки).
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
232
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
233 4. Наберите d$ для удаления остатка строки.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
234
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
235 ---> Кто-то набрал окончание этой строки дважды. окончание этой строки дважды.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
236
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
237
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
238 5. Чтобы лучше разобраться в том, как это происходит, переходите к Уроку 2.3.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
239
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
240 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
241 Урок 2.3: КОМАНДЫ И ОБЪЕКТЫ
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
242
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
243
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
244 Многие команды, изменяющие текст, состоят из оператора и объекта. Формат
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
245 команды удаления с оператором d следующий:
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
246
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
247 d объект
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
248
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
249 Здесь:
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
250 d - оператор удаления.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
251 объект - над чем должна быть выполнена команда (перечислено ниже).
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
252
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
253 Краткий список объектов:
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
254 w - от курсора до конца слова, включая последующий пробел.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
255 e - от курсора до конца слова, НЕ включая последующий пробел.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
256 $ - от курсора до конца строки.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
257 ^ - от курсора до начала строки.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
258
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
259 Замечание! Простое нажатие на символ объекта в обычном режиме (Normal mode)
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
260 без предварительного оператора переместит курсор так, как указано
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
261 в списке объектов.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
262
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
263 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
264 Урок 2.4: ИСПОЛЬЗОВАНИЕ СЧЁТЧИКА ДЛЯ ПЕРЕМЕЩЕНИЯ
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
265
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
266
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
267 ** Ввод числа перед оператором перемещения приведёт к его повторению
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
268 заданное количество раз. **
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
269
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
270 1. Переместите курсор к началу строки отмеченной ---> ниже.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
271
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
272 2. Наберите 2w для перемещения курсора вперёд к началу второго слова.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
273
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
274 3. Наберите 3e для перемещения курсора вперёд к концу третьего слова.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
275
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
276 4. Наберите 0 (нуль) для перемещения к началу строки.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
277
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
278 5. Повторите шаги 2 и 3 с различными числами.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
279
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
280 ---> Обычная строка из слов для вашего перемещения по ней.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
281
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
282 6. Переходите к Уроку 2.5.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
283
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
284 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
285 Урок 2.5: ИСПОЛЬЗОВАНИЕ СЧЁТЧИКА ДЛЯ УДАЛЕНИЯ
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
286
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
287
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
288 ** Ввод числа перед оператором приведёт к его повторению
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
289 заданное количество раз. **
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
290
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
291 Добавьте число перед перед объектом в комбинацию оператора удаления и
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
292 перемещения указанную выше для удаления указанного количества объектов:
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
293 d число объект
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
294
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
295 1. Переместите курсор к первому слову из прописных букв в отмеченной --->
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
296 строке ниже.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
297
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
298 2. Наберите d2w для удаления двух слов из прописных букв.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
299
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
300 3. Повторите шаги 1 и 2 с другими числами для удаления последовательных слов
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
301 из прописных букв одной командой.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
302
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
303 ---> эта АБВ ГД строка ЕЖЗИ КЛ МНО из слов П РС ТУФ очищена.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
304
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
305 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
306 Урок 2.6: ОПЕРАЦИИ СО СТРОКАМИ
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
307
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
308
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
309 ** Наберите dd для удаления целой строки. **
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
310
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
311 В связи с частой необходимостью удаления целой строки, создатели Vi решили
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
312 для упрощения сделать возможным удаление строки набором двух d.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
313
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
314 1. Переместите курсор вниз, ко второй строке фразы.
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
315
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
316 2. Наберите dd для удаления строки.
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
317
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
318 3. Теперь переместитесь к четвёртой строке.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
319
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
320 4. Наберите 2dd для удаления двух строк.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
321
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
322 ---> 1) Летом я хожу на стадион,
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
323 ---> 2) О, как внезапно кончился диван!
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
324 ---> 3) Я болею за ``Зенит'', ``Зенит'' --- чемпион!
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
325 ---> 4) Печально я гляжу на наше поколение!
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
326 ---> 5) Его грядущее иль пусто иль темно...
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
327 ---> 6) Я сижу на скамейке в ложе `Б'
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
328 ---> 7) И играю на большой жестяной трубе.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
329
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
330 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
331 Урок 2.7: КОМАНДА `ОТМЕНА'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
332
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
333
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
334 ** Нажмите u для отмены результата работы предыдущей команды, U для отмены
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
335 исправлений во всей строке. **
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
336
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
337 1. Переместите курсор вниз, к строке помеченной --->, и установите его на
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
338 первую ошибку.
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
339
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
340 2. Нажмите x для удаления первого неправильного символа.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
341
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
342 3. Теперь нажмите u для отмены (отката) последней выполненной команды.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
343
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
344 4. Исправьте все ошибки в строке, используя команду x .
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
345
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
346 5. Теперь нажмите заглавную U для того, чтобы вернуть всю строку
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
347 в исходное состояние.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
348
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
349 6. Нажмите u несколько раз для отмены команды U и предыдущих команд.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
350
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
351 7. Нажмите теперь CTRL-R (т.е. удерживайте клавишу CTRL нажатой в момент
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
352 нажатия клавиши R) несколько раз для возврата команд (откат отката).
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
353
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
354 ---> Испрравьте оошибки в этойй строке и вернитте их сс помощьью `отмены'.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
355
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
356 8. Это были очень полезные команды. Далее переходите к Резюме Урока 2.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
357
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
358 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
359 РЕЗЮМЕ УРОКА 2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
360
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
361
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
362 1. Для удаления текста от курсора до конца слова наберите: dw
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
363
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
364 2. Для удаления текста от курсора до конца строки наберите: d$
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
365
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
366 3. Для удаления всей строки наберите: dd
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
367
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
368 4. Для повтора перемещения введите количество перед командой: 2w
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
369
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
370 5. Формат команды в обычном режиме имеет вид:
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
371
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
372 [число] команда объект ИЛИ команда [число] объект
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
373 где:
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
374 [число] - сколько раз повторить выполнение команды, опционально
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
375 команда - что выполнить, например d для удаления
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
376 объект - на что должна воздействовать команда, например w (слово),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
377 $ (до конца строки), и т.д.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
378
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
379 6. Для перехода к началу строки используйте нуль: 0
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
380
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
381 7. Для отмены (отката) предшествующих действий наберите: u (строчная u)
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
382 Для отмены (отката) всех изменений в строке наберите: U (прописная U)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
383 Для отмены отката наберите: CTRL-R
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
384
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
385 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
386 Урок 3.1: КОМАНДА ВСТАВКИ
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
387
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
388
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
389 ** Наберите p для вставки последнего удалённого текста после курсора. **
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
390
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
391 1. Переместите курсор вниз, к строке помеченной --->.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
392
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
393 2. Наберите dd для удаления строки и её сохранения в буфере Vim'а.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
394
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
395 3. Переместите курсор к строке НАД тем местом, куда следует вставить
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
396 удалённую строку.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
397
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
398 4. Находясь в обычном режиме наберите p для вставки строки ниже курсора.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
399
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
400 5. Повторите шаги со 2 по 4, пока не расставите все строки в нужном порядке.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
401
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
402 ---> г) И лучше выдумать не мог.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
403 ---> б) Когда не в шутку занемог,
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
404 ---> в) Он уважать себя заставил
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
405 ---> а) Мой дядя самых честных правил
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
406
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
407 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
408 Урок 3.2: КОМАНДА ЗАМЕНЫ
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
409
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
410
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
411 ** Наберите r и символ, заменяющий символ под курсором. **
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
412
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
413 1. Переместите курсор вниз, к строке помеченной --->.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
414
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
415 2. Установите курсор так, чтобы он находился над первой ошибкой.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
416
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
417 3. Наберите r и затем символ, исправляющий ошибку.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
418
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
419 4. Повторите шаги 2 и 3, пока первая строка не будет исправлена как вторая.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
420
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
421 ---> В момегт набтра этой чтроки кое0кто с трудом попвдал по клваишам!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
422 ---> В момент набора этой строки кое-кто с трудом попадал по клавишам!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
423
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
424 5. Теперь переходите к Уроку 3.3.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
425
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
426 Замечание! Помните, что вы должны учиться в процессе работы, а не просто
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
427 запоминая.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
428
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
429 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
430 Урок 3.3: КОМАНДА ИЗМЕНЕНИЯ
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
431
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
432
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
433 ** Для изменения конечной части слова наберите ce . **
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
434
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
435 1. Переместите курсор вниз, к строке помеченной --->.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
436
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
437 2. Расположите курсор над буквой `o' в слове `сола'.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
438
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
439 3. Наберите ce и исправьте слово (в данном случае, наберите `лов').
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
440
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
441 4. Нажмите <ESC> и переходите к следующей ошибке (к первому символу, который
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
442 надо изменить).
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
443
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
444 5. Повторите шаги 3 и 4 пока первое предложение не станет идентичным второму.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
445
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
446 ---> Несколько сола в эьгц строке тпгшцбь редалзкуюиесвх.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
447 ---> Несколько слов в этой строке требуют редактирования.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
448
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
449 Обратите внимание, что ce не только удаляет слово, но и переводит вас в
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
450 режим вставки.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
451
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
452 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
453 Урок 3.4: ПРОДОЛЖАЕМ ИЗМЕНЯТЬ С КОМАНДОЙ c
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
454
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
455
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
456 ** Команда замены используется с теми же объектами, что и команда удаления. **
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
457
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
458 1. Команда изменения применяется таким же образом, как и команда удаления.
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
459 Её формат таков:
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
460
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
461 [число] c объект ИЛИ c [число] объект
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
462
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
463 2. Объекты также совпадают: w (слово), $ (конец строки) и т.п.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
464
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
465 3. Переместите курсор вниз, к строке помеченной --->.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
466
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
467 4. Перейдите к первой ошибке.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
468
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
469 5. Наберите c$ и отредактируйте первую строку так, чтобы она совпадала со
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
470 второй, после чего нажмите <ESC>.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
471
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
472 ---> Конец этой строки нуждается в помощи, чтобы стать похожим на второй.
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
473 ---> Конец этой строки нуждается в помощи команды c$ .
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
474
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
475 Замечание! Клавиша Backspace может использоваться для исправления при наборе.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
476
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
477 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
478 РЕЗЮМЕ УРОКА 3
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
479
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
480
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
481 1. Для вставки текста, который только что был удалён, наберите p . Эта
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
482 команда вставит удалённый текст ПОСЛЕ курсора (если была удалена строка,
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
483 то она будет помещена в строке под курсором).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
484
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
485 2. Для замены символа под курсором наберите r и затем заменяющий символ.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
486
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
487 3. Команда изменения позволяет вам изменить указанный объект от курсора до
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
488 окончания перемещения. Например, наберите ce для замены от курсора до
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
489 конца слова, c$ для изменения до конца строки.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
490
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
491 4. Формат команды изменения таков:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
492
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
493 [число] c объект ИЛИ c [число] объект
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
494
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
495 Теперь переходите к следующему уроку.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
496
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
497 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
498 Урок 4.1: ИНФОРМАЦИЯ О ФАЙЛЕ И РАСПОЛОЖЕНИИ В НЕМ
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
499
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
500
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
501 ** Наберите CTRL-g чтобы увидеть ваше месторасположение в файле и
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
502 информацию о файле. Наберите G (SHIFT-G) для перемещения к заданной
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
503 строке в файле. **
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
504
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
505 Замечание! Прочитайте весь урок прежде чем выполнять любые команды!
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
506
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
507 1. Удерживая клавишу Ctrl нажмите g . Внизу экрана появится строка статуса
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
508 с именем файла и номером строки, в которой вы находитесь. Запомните номер
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
509 строки, он потребуется на Шаге 3.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
510
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
511 2. Удерживая клавишу Shift нажмите g для перемещения к концу файла.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
512
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
513 3. Наберите номер строки, в которой вы находились и затем Shift-G. Это
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
514 вернёт вас к строке, в которой вы были, когда в первый раз нажали Ctrl-g.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
515
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
516 4. Если вы запомнили все вышесказанное, выполните шаги с 1 по 3.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
517
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
518 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
519 Урок 4.2: КОМАНДА ПОИСКА
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
520
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
521
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
522 ** Наберите / и затем введите искомую фразу. **
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
523
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
524 1. В обычном режиме (Normal mode) наберите символ / . Обратите внимание,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
525 что он вместе с курсором появится внизу экрана, как это происходит с
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
526 командой : .
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
527
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
528 2. Теперь наберите 'ошшшибка' <ENTER>. Это то слово, которое вы будете
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
529 искать.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
530
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
531 3. Для того, чтобы повторить поиск, просто нажмите n .
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
532 Для поиска этой же фразы в обратном направлении, нажмите Shift-N .
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
533
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
534 4. Если вы желаете сразу искать в обратном направлении, используйте
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
535 команду ? вместо / .
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
536
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
537 5. Для того, чтобы вернуться туда, откуда вы начали поиск нажмите Ctrl-O.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
538 (Удерживая нажатой клавишу Ctrl нажмите o ). Повторите несколько раз
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
539 для дальнейшего перехода. Для перехода вперёд используйте Ctrl-I .
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
540
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
541 ---> "ошшшибка" это не способ написания слова `ошибка'; ошшшибка это ошибка.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
542
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
543 Замечание! Если при поиске будет достигнут конц файла, то поиск будет продолжен
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
544 с начала.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
545
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
546 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
547 Урок 4.3: ПОИСК ПАРНЫХ СКОБОК
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
548
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
549
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
550 ** Наберите % для поиска парных ), ] или } . **
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
551
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
552 1. Поместите курсор над любой из (, [ или { в строке ниже, помеченной --->.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
553
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
554 2. Теперь наберите символ % .
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
555
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
556 3. Курсор должен перескочить на парную скобку.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
557
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
558 4. Наберите % для возврата курсора назад к первой скобке.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
559
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
560 ---> Это ( строка, содержащая такие (, такие [ ] и такие { } скобки. ))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
561
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
562 Замечание! Это очень удобно при отладке программ с пропущенными скобками!
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
563
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
564 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
565 Урок 4.4: СПОСОБ ИСПРАВЛЕНИЯ ОШИБОК
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
566
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
567
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
568 ** Наберите :s/было/стало/g для замены 'было' на 'стало'. **
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
569
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
570 1. Переместите курсор вниз, к строке помеченной --->.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
571
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
572 2. Наберите :s/уводю/увожу <ENTER> . Обратите внимание на то, что эта
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
573 команда заменит только первое найденное вхождение в строке.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
574
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
575 3. Теперь наберите :s/уводю/увожу/g , добавленная в конце g означает
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
576 подстановку глобально во всей строке. Это заменит все найденные в строке
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
577 вхождения.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
578
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
579 ---> Я уводю к отверженным селеньям, я уводю сквозь вековечный стон, я уводю к
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
580 забытым поколеньям.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
581
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
582 4. Для замены всех вхождений последовательности символов между двумя
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
583 строками,
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
584 наберите :#,#s/было/стало/g где #,# -- номера этих строк.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
585 Наберите :%s/было/стало/g для замены всех вхождений во всем файле.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
586 Наберите :%s/было/стало/gc для поиска всех вхождений во всем файле и
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
587 запроса подтверждения замены.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
588
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
589 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
590 РЕЗЮМЕ УРОКА 4
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
591
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
592
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
593 1. Ctrl-g показывает ваше положение в файле и информацию о нем.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
594 Shift-G перемещает вас в конец файла. Номер, за которым следует Shift-G
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
595 позволяет перейти к строке с этим номером.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
596 gg перемещает вас к первой строке файла.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
597
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
598 2. Нажатие / и затем ввод строки позволяет произвести поиск этой строки
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
599 ВПЕРЁД по тексту.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
600 Нажатие ? и затем ввод строки позволяет произвести поиск этой строки
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
601 НАЗАД по тексту.
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
602 После поиска наберите n для перехода к следующему вхождению искомой
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
603 строки в том же направлении или Shift-N для перехода в противоположном
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
604 направлении.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
605
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
606 3. Нажатие % , когда курсор находится на (,),[,],{, или } позволяет найти
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
607 парную скобку.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
608
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
609 4. Для подстановки `стало' вместо первого `было' в строке, наберите
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
610 :s/old/new
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
611 Для подстановки `стало' вместо всех `было' в строке, наберите
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
612 :s/old/new/g
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
613 Для замены в интервале между двумя строками, наберите
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
614 :#,#s/old/new/g
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
615 Для замены всех вхождений `было' на `стало' в файле, наберите
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
616 :%s/old/new/g
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
617 Чтобы редактор каждый раз запрашивал подтверждение, добавьте 'c'
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
618 :%s/old/new/gc
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
619
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
620 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
621 Урок 5.1: КАК ВЫПОЛНИТЬ ВНЕШНЮЮ КОМАНДУ
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
622
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
623
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
624 ** Наберите :! и затем внешнюю команду, которую следует выполнить. **
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
625
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
626 1. Наберите уже знакомую вам команду : для установки курсора в командную
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
627 строку редактора. Это позволит вам ввести команду.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
628
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
629 2. Теперь наберите символ ! (восклицательный знак). Это позволит выполнить
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
630 внешнюю команду, используя командную оболочку.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
631
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
632 3. Для примера наберите ls после ! и нажмите <ENTER>. Команда выведет
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
633 список файлов в текущем каталоге, точно также, как если бы вы ввели эту
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
634 команду в приглашении оболочки. Или попробуйте :!dir , если команда ls
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
635 не сработала.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
636
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
637 Замечание! Таким способом можно выполнить любую внешнюю команду с указанием
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
638 аргументов.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
639
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
640 Замечание! Все команды, начинающиеся с : , должны завершаться нажатием
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
641 <ENTER>. Далее на это не всегда будет обращаться особое внимание.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
642
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
643 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
644 Урок 5.2: КАК ЗАПИСАТЬ ФАЙЛ
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
645
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
646
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
647 ** Для сохранения изменений, произведённых в файле,
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
648 наберите :w ИМЯ_ФАЙЛА. **
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
649
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
650 1. Наберите :!dir или :!ls для получения списка файлов в текущем
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
651 каталоге. Как вам уже известно, после ввода команды надо нажать <ENTER>.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
652
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
653 2. Придумайте название для файла, которое ещё не существует, например TEST.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
654
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
655 3. Теперь наберите :w TEST (где TEST -- это имя файла, придуманное вами.)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
656
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
657 4. Команда сохранит весь этот файл (Учебник по Vim) под именем TEST. Чтобы
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
658 удостовериться в этом, снова наберите :!dir или :!ls и просмотрите
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
659 каталог.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
660
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
661 Замечание! Если вы выйдете из Vim и затем запустите его снова с файлом TEST
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
662 (т.е. выполните vim TEST ), этот файл будет точной копией учебника
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
663 в тот момент, когда вы его сохранили.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
664
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
665 5. Теперь удалите этот файл, набрав для MS-DOS :!del TEST
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
666 для Unix :!rm TEST
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
667
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
668 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
669 Урок 5.3: ВЫБОРОЧНОЕ СОХРАНЕНИЕ
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
670
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
671
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
672 ** Для сохранения части файла, наберите v выберите часть
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
673 и сохраните её :w ИМЯ_ФАЙЛА **
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
674
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
675 1. Переместите курсор к этой строке.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
676
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
677 2. Нажмите v и переместите курсор ниже к пятому шагу. Обратите внимание,
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
678 что текст подсвечен.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
679
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
680 3. Нажмите : и внизу экрана появится :'<,'> .
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
681
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
682 4. Введите w TEST (где TEST -- имя файла, который ещё не существует).
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
683 До нажатия <ENTER>, проверьте что внизу экрана написано :'<,'>w TEST.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
684
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
685 5. Vim запишет выбранные строки в файл TEST. Как и прежде, убедитесь в
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
686 наличии этого файла командой :!dir или :!ls . НЕ УДАЛЯЙТЕ этот файл, он
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
687 потребуется в следующем уроке.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
688
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
689 Замечание! Нажатие v начинает визуальный выбор. Вы можете перемещать курсор
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
690 для изменения выбора. Затем для выбранного фрагмента можно выполнить
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
691 какой-то оператор, например, удалить нажатием d.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
692
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
693 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
694 Урок 5.4: ЧТЕНИЕ И ОБЪЕДИНЕНИЕ ФАЙЛОВ
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
695
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
696
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
697 ** Для вставки содержимого из файла, наберите :r ИМЯ_ФАЙЛА **
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
698
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
699 1. Установите курсор над этой строкой.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
700
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
701 Замечание! После выполнения Шага 2 вы увидите текст из Урока 5.3. Переместитесь
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
702 ВНИЗ по тексту до этого урока.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
703
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
704 2. Теперь прочитайте ваш файл TEST, используя команду :r TEST , где TEST --
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
705 это имя файла.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
706
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
707 3. Для проверки что содержимое файла было вставлено, переместитесь по тексту
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
708 и удостоверьтесь, что теперь в нём две копии Урока 5.3: исходная и из
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
709 файла TEST.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
710
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
711 Замечание! Вставить можно и вывод внешней команды. Например, :r !ls прочитает
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
712 вывод команды ls и вставит его ниже курсора.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
713
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
714 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
715 РЕЗЮМЕ УРОКА 5
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
716
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
717
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
718 1. :!команда исполняет внешнюю команду.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
719
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
720 Некоторые полезные примеры:
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
721 (MS-DOS) (Unix)
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
722 :!dir :!ls -- вывести список файлов в каталоге.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
723 :!del ИМЯ :!rm ИМЯ -- удалить файл по имени.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
724
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
725 2. :w ИМЯ_ФАЙЛА записывает текущий редактируемый в Vim файл на диск под
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
726 указанным именем.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
727
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
728 3. v перемещение :w ИМЯ_ФАЙЛА сохраняет визуально выбранные строки в файл
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
729 с указанным именем.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
730
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
731 4. :r ИМЯ_ФАЙЛА считывает с диска файл с указанным именем и помещает его
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
732 ниже курсора.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
733
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
734 5. :r !dir читает вывод команды dir и помещает его ниже курсора.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
735
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
736 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
737 Урок 6.1: КОМАНДА СОЗДАНИЯ
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
738
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
739
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
740 ** Наберите o чтобы создать пустую строку под курсором и перейти в режим
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
741 вставки (Insert mode) **
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
742
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
743 1. Переместите курсор вниз, к строке помеченной --->.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
744
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
745 2. Наберите o (в нижнем регистре) для того, чтобы создать пустую строку
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
746 НИЖЕ курсора и перейти в режим вставки (Insert mode).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
747
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
748 3. Теперь наберите какой-нибудь текст и нажмите <ESC> для выхода из режима
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
749 вставки.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
750
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
751 ---> После нажатия o курсор перейдёт на новую пустую строку в режиме вставки.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
752
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
753 4. Для создания строки ВЫШЕ курсора, просто наберите заглавную O , вместо
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
754 строчной o . Попробуйте проделать это с нижеследующей строкой.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
755
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
756 ---> Создайте новую строку над этой, поместив на неё курсор и нажав Shift-O.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
757
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
758 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
759 Урок 6.2: КОМАНДА ДОБАВЛЕНИЯ
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
760
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
761
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
762 ** Наберите a , чтобы вставить текст ПОСЛЕ курсора. **
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
763
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
764 1. Переместите курсор вниз, в начало первой строки помеченной --->.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
765
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
766 2. Набирайте e пока курсор не переместиться на конец cтро .
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
767
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
768 3. Наберите a (в нижнем регистре) для добавления текста ПОСЛЕ символа,
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
769 находящегося под курсором. (Заглавная A позволяет добавить в конец
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
770 строки.)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
771
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
772 4. Допишите слово так, как показано в строке ниже. Нажмите <ESC> для выхода
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
773 из режима вставки (Insert mode).
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
774
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
775 5. Используйте e для перехода к концу следующего незавершённого слова и
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
776 повторите шаги 3 и 4.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
777
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
778 ---> Эта стро позволит вам попрактиков в добавле текста.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
779 ---> Эта строчка позволит вам попрактиковаться в добавлении текста.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
780
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
781 Замечание! a , i и A переводят в один и тот же режим вставки, различие
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
782 только в том, где вставляются символы.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
783
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
784 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
785 Урок 6.3: ЕЩЁ ОДИН СПОСОБ ЗАМЕНЫ
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
786
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
787
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
788 ** Наберите заглавную R для замены более чем одного символа. **
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
789
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
790 1. Переместите курсор вниз, к первой строке помеченной --->, и в начало
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
791 первого слова xxx.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
792
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
793 2. Теперь нажмите R и введите число указанный ниже во второй строке чтобы
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
794 заменить xxx.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
795
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
796 3. Нажмите <ESC> для выхода из режима замены. Заметьте что остаток строки
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
797 не был изменён.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
798
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
799 4. Повторите эти шаги для замены оставшихся xxx.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
800
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
801 ---> Добавление 123 к xxx даёт xxx.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
802 ---> Добавление 123 к 456 даёт 579.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
803
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
804 Замечание! Режим замены похож на режим вставки, но каждый введённый символ
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
805 удаляет существующий.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
806
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
807 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
808 Урок 6.4: КОПИРОВАНИЕ И ВСТАВКА ТЕКСТА
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
809
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
810
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
811 ** Используйте команду y для копирования и p для вставки **
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
812
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
813 1. Переместите курсор вниз, к первой строке помеченной --->, и после `а)'.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
814
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
815 2. Переключитесь в режим визуального выбора нажав v и переместите курсор
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
816 перед словом `первый'.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
817
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
818 3. Введите y для копирования подсвеченного текста.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
819
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
820 4. Переместите курсор в конец следующей строки комбинацией j$ .
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
821
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
822 5. Нажмите p для вставки текста. Затем введите `второй' и нажмите <ESC>.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
823
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
824 ---> а) Этот элемент первый.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
825 б)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
826
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
827 Замечание! Также возможно использовать yw (команду y с оператором w ) для
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
828 копирования одного слова.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
829
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
830 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
831 Урок 6.5: УСТАНОВКА ПАРАМЕТРОВ
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
832
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
833
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
834 ** Установка параметра для игнорирования регистра при поиске или замене **
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
835
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
836 1. Найдите слово `игнорировать', набрав: /игнорировать <ENTER>.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
837 Повторите поиск несколько раз, нажимая клавишу n .
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
838
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
839 2. Установите параметр `ic' (игнорировать регистр), набрав: :set ic
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
840
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
841 3. Теперь снова несколько раз сделайте поиск слова `игнорировать',
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
842 нажимая: n
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
843 Заметьте, что теперь находятся `Игнорировать' и `ИГНОРИРОВАТЬ'.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
844
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
845 4. Установите параметры `hlsearch' и `incsearch': :set hls is
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
846
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
847 5. Теперь опять введите команду поиска и посмотрите, что получится:
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
848 /игнорировать <ENTER>
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
849
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
850 6. Для возвращения учёта регистра при поиске наберите: :set noic
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
851
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
852 Замечание! Для отключения подсветки совпадений наберите: :nohlsearch
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
853
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
854 Замечание! Если вы хотите игнорировать регистр только для одного поиска,
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
855 используйте \с в команде поиска: /игнорировать\c <ENTER>
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
856
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
857 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
858 РЕЗЮМЕ УРОКА 6
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
859
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
860
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
861 1. Нажмите o для создания строки НИЖЕ курсора и перехода в режим вставки.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
862 Нажмите O для создания строки ВЫШЕ курсора.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
863
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
864 2. Нажмите a для вставки текста ПОСЛЕ курсора.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
865 Нажмите A для вставки текста в конец строки.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
866
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
867 3. Команда e подводит курсор к концу слова.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
868
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
869 4. Команда y копирует текст, p -- вставляет скопированный текст.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
870
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
871 5. Нажатие заглавной R переводит в режим замены до нажатия клавиши <ESC> .
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
872
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
873 6. Наберите `:set xxx' для включения параметра `xxx', некоторые параметры:
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
874
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
875 `ic' `ignorecase' игнорирование регистра при поиске
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
876 `is' `incsearch' отображение частичных совпадений при поиске
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
877 `hls' `hlsearch' подсветка всех совпадений при поиске
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
878
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
879 7. Добавьте `no' перед параметром для его отключения: :set noic
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
880
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
881 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
882 Урок 7.1: ВСТРОЕННАЯ СПРАВКА
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
883
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
884
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
885 ** Используйте встроенную справочную систему **
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
886
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
887 Vim обладает мощной встроенной справочной системой. Для начала попробуйте
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
888 один из трёх вариантов:
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
889 - нажмите клавишу <HELP> (если таковая имеется на клавиатуре)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
890 - нажмите клавишу <F1> (если таковая имеется на клавиатуре)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
891 - наберите :help <ENTER>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
892
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
893 Прочитайте текст в окне справки для получения представления о том как
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
894 работает справка.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
895 Нажмите CTRL-W CTRL-W для перехода от окна к окну.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
896 Наберите :q <ENTER> чтобы закрыть окно справки.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
897
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
898 Вы можете найти справку для любого понятия или команды, задав соответствующий
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
899 аргумент команде `:help'. Попробуйте следующее (не забудьте нажать <ENTER>):
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
900
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
901 :help w
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
902 :help c_CTRL-D
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
903 :help insert-index
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
904 :help user-manual
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
905
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
906 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
907 Урок 7.2: СОЗДАНИЕ СТАРТОВОГО СЦЕНАРИЯ
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
908
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
909
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
910 ** Включим возможности Vim **
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
911
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
912 Vim имеет намного больше возможностей, чем Vi, но большинство из них по
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
913 умолчанию выключены. Для использования больших возможностей вам следует
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
914 создать файл `vimrc'.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
915
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
916 1. Отредактируйте новый файл `vimrc'. Его расположение зависит от
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
917 используемой системы:
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
918 :e ~/.vimrc для Unix
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
919 :e $VIM/_vimrc для MS-Windows
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
920
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
921 2. Теперь прочитайте пример файла `vimrc':
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
922 :r $VIMRUNTIME/vimrc_example.vim
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
923
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
924 3. Запишите созданный вами новый файл `vimrc':
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
925 :w
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
926
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
927 Теперь при следующем запуске Vim будет включена подсветка синтаксиса. Все
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
928 настройки, предпочитаемые вами, могут быть добавлены в файл `vimrc'.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
929 Для дальнейшей информации наберите :help vimrc-intro
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
930
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
931 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
932 Урок 7.3: ДОПОЛНЕНИЕ
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
933
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
934
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
935 ** Командную строку можно дополнить нажав CTRL-D и <TAB> **
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
936
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
937 1. Удостоверьтесь, что Vim не в режиме совместимости: :set nocp
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
938
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
939 2. Посмотрите какие файлы есть в каталоге: :!ls или :!dir
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
940
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
941 3. Наберите начало команды: :e
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
942
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
943 4. Нажмите CTRL-D и Vim отобразит список команд начинающихся на `e'.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
944
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
945 5. Нажмите <TAB> и Vim дополнит название команды до `:edit'.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
946
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
947 6. Теперь добавьте пробел и начало существующего имени файла: :edit ФАЙ
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
948
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
949 7. Нажмите <TAB> и Vim дополнит имя файла, если оно уникальное.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
950
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
951 Замечание! Дополнение работает для многих команд. Попробуйте нажать CTRL-D и
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
952 <TAB>. Это особенно полезно для команды :help .
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
953
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
954 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
955 РЕЗЮМЕ УРОКА 7
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
956
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
957
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
958 1. Наберите :help или нажмите <F1>, или <Help> для открытия окна справки.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
959
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
960 2. Наберите :help cmd для поиска справки по команде.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
961
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
962 3. Нажмите CTRL-W CTRL-W для перехода к другому окну.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
963
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
964 4. Наберите :q для закрытия окна справки (если оно активно).
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
965
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
966 5. Для хранения ваших настроек создайте стартовый сценарий `vimrc'.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
967
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
968 6. При наборе : команды, нажмите CTRL-D для отображения возможных
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
969 дополнений. Нажмите <TAB> для использования дополнения.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
970
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
971 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
972
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
973 На этом завершается Учебник Vim. Он был предназначен дать общее представление
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
974 о редакторе Vim, достаточное для того, чтобы с лёгкостью использовать его.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
975 Учебник далёк от полноты, поскольку Vim имеет очень много команд. Прочитайте
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
976 теперь руководство пользователя: `:help user-manual'.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
977
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
978 Для дальнейшего чтения рекомендуется книга:
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
979 Vim - Vi Improved, автор: Steve Oualline, издатель: New Riders
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
980
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
981 Эта книга полностью посвящена Vim. Особенно полезна она будет новичкам.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
982 Содержит множество примеров и иллюстраций.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
983 См. http://iccf-holland.org/click5.html
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
984
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
985 Следующая книга более почтенного возраста и посвящена больше Vi, чем Vim,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
986 однако также рекомендуется:
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
987 Learning the Vi Editor, автор: Linda Lamb,
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
988 издатель: O'Reilly & Associates Inc.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
989
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
990 Это хорошая книга, чтобы узнать всё, что только можно сделать в Vi. Шестое
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
991 издание также включает информацию о Vim.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
992
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
993 Этот учебник написал Michael C. Pierce и Robert K. Ware, Colorado School of
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
994 Mines с использованием идей, которые предложил Charles Smith, Colorado State
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
995 University. E-mail: bware@mines.colorado.edu.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
996
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
997 Доработано для Vim Брамом Моленаром (Bram Moolenaar).
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
998
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
999 Перевод:
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
1000 Андрей Киселев <a_kissel@eudoramail.com>, 2002.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
1001 Сергей Алёшин <alyoshin.s@gmail.com>, 2014.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1002
6292
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
1003 Translators:
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
1004 Andrey Kiselev <a_kissel@eudoramail.com>, 2002.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
1005 Sergey Alyoshin <alyoshin.s@gmail.com>, 2014.
31f7581068a9 Update runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
1006
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1007 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~