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

3 Key question

3.1 Describe the functionality of the editor vim.

3.2 What is meant by editing a file in vim?

3.3 In which modes can operate editor vim?

3.4 Explain the differences between command mode of the editor from the command-line.

3.5 What has buffers editor vim? Describe the purpose of each of the buffers.

3.6 In what file can be set additional configuration options editor vim?

4 Home work

4.1 Examine the key provisions.

4.2 Prepare the answers to key questions

5 Lab task

5.1 Copy the file to the test user's home directory to the directory text. If there is no text to create the directory.

5.2 Open the copied file editor vim.

5.3 To master the technique of moving the text in batch mode.

5.4 To learn the commands scroll the screen.

5.5 To master the editing commands:

• Delete the character under the cursor;

• Delete the character before the cursor;

• Delete a row;

• Combine line with the next without inserting new gaps;

• Delete the line and go to the input mode;

• Exit from input to command mode;

5.6 Learn to work with registers:

• Place in a register and a random string of text;

• Place the register b 5 arbitrary lines of text;

• View the contents of the registers a and b;

• Paste text from a register before the cursor;

• Paste text from register b after the cursor;

5.7 To learn to work with teams of Undo and Redo.

5.8 To learn to work with the operations of selection:

• Select an arbitrary block of text;

• Change the case of letters in the selection;

• Delete selected lines;

• Recover deleted rows;

5.9 To learn to work in input mode. At the end of the file used to add text:

It is important to keep your computer secure, not only to protect data on the computer itself, but on the network as well. A good security system confirms the identity of the people who are attempting to access the resources on your computer, protects specific resources from inappropriate access by users, and provides a simple, efficient way to set up and maintain security on your computer.

5.10 Investigate expression search and replace:

• Find a word in the text file «forwarders»;

• Replace the word «Settings» word «Export»;

• Replace all occurrences of the text abbreviations «DNS» to «BIND»;

5.11 Exit the editor by saving your changes.

5.12 Copy the script file / usr/local/share/vim/vim62/vim_example.vim in ~ /. Vimrc.

5.13 Open the edited file editor vim. Analyze and explain changes in the options editor, guided by the content of the file. Vimrc.

6 Requirements for the protocol

6.1 Name of practical work.

6.2 Purpose of the work.

6.3 Results home work.

6.4 Brief description of the work done.

6.5 Conclusions on progress.

6.6 Date, signature student visa teacher.

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