: Delete When moving forward
6.:20,40D: Delete line 20th to 40 lines
(3) Query
1./text: Query backwards
2.?text: Forward Query
3. N: Find Next
(4) Modify text
1.R: Modify the current character
2.R: Overwrite the character until the ESC key is pressed
3.S: Deletes the current character and adds the character until the ESC key is pressed
4.S: Deletes all characters in the current line and adds characters until you press ESC
(5) Moving text
The VI
mode. The following figure:
If we need to insert text or delete text inside the document, we need to go into insert mode. The way into insert mode is to press the I or a key of the keyboard in command mode. The –insert– identification is displayed in the view. You can then begin editing the text. The following figure:
The bottom line mode is generally the VI editor to operate and set up, more commonl
current selection area is used.I personally recommend using Ctrl + insert copy and SHIFT + insert paste.Vim has multiple clipboard, including the system clipboard. Use commands: RegYou can see the content of each clipboard. Where""Indicates the currently used clipboard,"0-9Is the historical clipboard,"#It is the system clipboard (you can copy something in the system to see if it will appear"#Clipboard ). Use in VIMYYou can copy the content""Clipboard
After studying the linux vi editor for a long time, I would like to share with you that you have certainly gained a lot after reading this article. I hope this article will teach you more things.The linux vi editor is a standard editor for all
1. Why should we learn the vim editor?
There are many text editors in the command line interface of Linux. For example, we often hear about Emacs, pico, nano, joe, and vim. Vim can be viewed as the advanced version of vi. Why do we have to learn vim? There are several reasons:
(1) All Unix like systems have built-in vi
VI Editor for the veteran, one of the biggest advantages is that there are many options to use, and for the novice, this is also a big difficulty. This chapter describes the basic vi text editing commands. This article mainly describes how to move the cursor, and how to add and change text.As previously mentioned, the
CentOS6.4 text editor Vi/VimVim/Vi Introduction Vim/Vi is a powerful full-screen text editor, the most common text editor on Linux/UNIX. It is used to create, edit, and display text fil
II: Text Editor Vim/vi (Wake up call Vi late upgrade vim) Vim/vi is a powerful full-screen text editor, the most commonly used text editor on Linux/unix, which is to create, edit, and d
Reprint Source: http://blog.csdn.net/xiajun07061225/article/details/7039413First, why should we learn the VIM editor?There are a lot of text editors under the command line interface of Linux. For example, there are Emacs, Pico, Nano, Joe and VIM, etc. that are often heard. Vim can be seen as a premium version of VI. Why do we have to learn vim? There are several reasons for this:(1) All
1. Text Editor;
There are many text editors, such as gedit, kwrite, OpenOffice ......, in text mode, the editors include VI, VIM (enhanced version of VI), and nano ...... VI and Vim are the most commonly used editors in Linux. It is necessary to introduce the simplest usage of VI
1. Three status Modes
2. Common VI commands
: E filename (open a new file to the VI editor): E! Filename (open a new file to the VI editor and discard modifications to the current file)
: R filename (read file content to the cu
The most common use of the editor under Linux is vim or vi text editing. The difference between VI and Vim editor is that VIM is an improved version of VI, and it expands a lot of useful functions on the basis of VI
For vi usage, let's first talk about the text editor and word processing software Text Editor: in windows, the text editor is mainly for notepad in Linux, there are many text editors, such as nano, emacs, in windows, the vi processing software mainly includes office, wps, an
| -O file1 file2 file3 ...-o: Open multiple windows horizontally ^+w, UP ARROW | DOWN ARROW: Switch between multiple windows;-o: Open multiple windows vertically ^+w, LEFT arrow | Right ARROW: Switch between multiple windows; 13. Common commands in ex mode: 1. Display and Cancel line numbers:: Set Number (abbreviated: Set NU): Set Nonumber (abbreviated as : Set Nonu) 2. Turn character case sensitivity on or off: Set IgnoreCase (abbreviated as:
displayed at the bottom of the window.
Yanyb. H1: 1 int A = 1; file1.c2: 6 x =;
Each row in the list listed above has a label. to jump to a certain item, you only need to enter the corresponding label first:
3 [ 2.2 keyword completion during the program editing process
Many program editors provide the keyword complementing function, and the VI editor is no exception. The corresponding
This chapter learns how to save commands in the VI editor.Save command:There are many ways to save a long sequence of commands in VI and EX, so that when you call a saved sequence, you only need to enter a few characters.Word abbreviations:You can define abbreviations so that VI
This series of articles by @ Superman Einstein produced, reproduced please indicate the source. article Links: http://hpw123.net/a/Linux/Linuxjichu/2014/1026/93.html Superman Einstein personal website : http://www.hpw123.net Email: [email protected] CSDN: http://blog.csdn.net/u010283694textEditorThere are many, gedit, KWrite, OpenOffice, text-modeEditorThere are VI, VIM (enhanced version of VI
filenameWQ filenameSave the file being edited as filename and exit VIQ!Discard all changes, exit VISet NuShow line NumbersOr?Find, enter what you are looking for in/afterNwith/or, if the search is not the keyword you are looking for, press N or backwards (with/to) or forward (with?) to continue looking until you find it.For the first use VI, there are a few notes to remind:1. When you open a file with VI,
The VI Editor is the standard editor for all UNIX and Linux systems. The vi Editor is exactly the same for any version of UNIX and Linux systems .Basically,
Users who use UNIX or Linux systems often hear someone say open a certain file, or VI open, or EE open the file, then what is the VI editor?
What is the VI editor
VI
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.