Summary Of Vi Commands; Using The Vi Commands - Alcatel-Lucent 7450 Basic System Configuration Manual

Ethernet service switch /service router /extensible routing system
Hide thumbs Also See for 7450:
Table of Contents

Advertisement

VI Editor
When a configuration file is changed, a validation check is executed to see if the user is
allowed to view or perform configuration changes. When a user is modifying the
configuration file using the vi editor these checks do not occur. Because of this, the vi editor
is only available to a user with administrator privileges. Should others require access to the
vi editor, their profile must be modified allow the access. Access permission for the file
directory where the file resides must be performed before a user can opens, read, or write a
file processing command. If a user does not have permission to access the directory then the
operation must be denied.
When opening a file, a resource check verifies that sufficient resources are available to
process that file. If there are not enough resources, then the operation is denied and the
operator is informed of that event.
Multiple sessions are allowed and are limited only by the memory resources available on the
node.

Summary of vi Commands

The vi editor operates in two modes:

Using the vi Commands

Use the following commands to start and end vi edit sessions, move around in a file, enter
new text, modify, move, and delete old text, as well as read from and write to files other files.
The following tables list vi commands.
36
Command mode — This mode causes actions to be taken on the file.
In the this mode, each character entered is a command that does something to the text
file being edited; a character typed in the command mode may even cause the vi
editor to enter the insert mode.
Insert mode — Entered text is inserted into the file.
In the insert mode, every character typed is added to the text in the file. Hitting the
Esc (Escape) key turns off the insert mode.
Cutting and Pasting/Deleting Text in vi
Inserting New Text
Moving the Cursor Within the File
Moving the Cursor Around the Screen
Replacing Text
Basic System Configuration Guide

Advertisement

Table of Contents
loading

This manual is also suitable for:

77507950

Table of Contents