Get the App
SLTechnology News&Howtos  ›  Servers  › 

Notes on the principles and applications of Unix-Chapter 7 vi Editor

Shulou Source: shulou.com Published: 2022-06-03 02:15:02 10月06日 Update

Introduction: vi editor is a screen editor, there are always two kinds of editors in unix system, one is line editor such as: sed, the other is screen editor such as: vim

Word editor and text editor

The word editor can make the text bold and oblique, while the text editor can only edit the text quickly.

Initial vi Editor

The last line in Vi is used to enter commands that manipulate text content, and this line is also used to provide system output response messages

Before the text is saved, it is stored in a temporary area of memory-the buffer.

When in command mode, pressing the extra ESC key will beep.

Enter the command for the mode:

I: insert text on the left side of the cursor a: add text on the right side of the cursor

I: insert text at the beginning of the line A: add text at the end of the line

O: insert a row below the current line 0: insert a row above the current line

R: replace the character at the cursor position with a single character, without pressing ESC

R: replace the text on the right side of the cursor, and the existing text is rewritten

S: replace the cursor with multiple characters, multiple characters of position

S: replace an entire line

Tags: Editor text cursor line character command line location content right multiple screen text mode system input memory area single just Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Linux MariaDB vpn Shulou Information