Linux Study Notes (4)-Use of the text editor vi and Study Notes vi
Three editing modes of vi
Command mode)In this mode, you can control the movement of the cursor, delete characters, delete rows, and copy and move a paragraph.
Insert mode)Only in this mode can you enter characters
Last line mode)In this mode, you can save the file or exit Vi, set the
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 editor. in most Linux
One of the most powerful editors VI1. The difference between VI and VIMThey are multi-mode editor, the difference is that vim is the upgrade version of VI , it is not only compatible with all VI directives, but also some new features inside.These advantages of vim are mainly reflected in the following aspects:1. Multilevel undoWe know in VI, press u can only undo the last command, and in Vim can be unlimited undo.2. Ease of UseVI can only run on Unix,
How to install the text editor Atom 0.124.0 in Linux
Atom is an open-source, cross-platform text editor developed by GitHub. It has a simple and intuitive graphic user interface and a bunch of interesting text editing functions. I
Linux has a lot of text editors, where the system (regardless of which branch) will bring the Nano and VI of the two most basic Editor. Vim is equivalent to VI upgrade version. Here we will explain the use of these editors in turn.
1.nano
You can open a file or create a new file by typing the nano filename directly on the command line.
You can see the first line
Guide
We do not lack very modern editing software on Linux, but they are all GUI-based (graphical interface) editing software. As you know: the real charm of Linux is the command line, and when you're working with the command line, you need a text editor that you can run in the console window. Which one is right f
Text EditorThe text editor is an important tool in the Linux operating system. Among them, VI is the most widely used text editor, which can be used in any shell. In addition, Red Hat Enterprise Linux6 provides gedit tools that al
Linux text editor Vim/Vi details, vimvi
Ii. Text Editor Vim/Vi (later called the upgraded version of Vi) Vim/vi is a powerful full-screen text editor and the most common
#复制一行P #粘贴Clip:CC exit insert mode P (paste) #剪贴~~~~~~~~~~5:vim the problem of abnormal exit~~~~~~~Direct-off Vim a hidden file is generated when the system exits abnormally. FILE.SWP vim will appear when you edit this file again~~~~~~~o ReadingE-EditR restores the newly enteredD DeleteQ exitA (check)~~~~~~~Workaround: Delete. file.swp6: Bulk Operations~~~~~~~~~~(1) Bulk INSERT characters:Ctrl + V Select the line I want to add the character to enter what to insert and then exitBulk conversion o
The philosophy of the Linux system is all documents, we usually need to fill in the content of the file is often used in the text editor before we learned the Nano editor, but the Nano editor features a single, not suitable for complex operations, this article will be the ma
Vim is a powerful full-screen text editor, Linux/unix's most commonly used text editor, to Create, edit, and display text files . vim is characterized by no menus, only commands .Vim mainly has three kinds of working modes, namely
Tags: note format inux home directory copy share custom profile emailVim is a powerful full-screen text editor, which is the most commonly used text editor on Linux, and its role is to create, edit, display text files, vim no menu
Linux Ubuntu Server 14.04 LTS processes Chinese Garbled text and vi editor operations, ubuntu14.04
First, I searched for some information on the Internet, saying that it was temporarily unavailable.
However, during installation, the installation is performed in Chinese. Therefore, the command page displays Garbled text
VimVim is a powerful full-screen text editor, which is the most commonly used text editor on Linux/unix , and its function is to create, edit and display text files.Note:vim does not have a menu, only commandsVI [filename ] Enter
operation::w Save. :q exit directly, do not save. (quit) .:q! modified, not saved, forced to quit. :wq Save and exit. :wq! force save and exit. :x Save exit. :w file path Save as another file. Call external file or command: :!+ command replace (command line mode): format:% All content s replace old content new content default is the first qualifying word for each line (/g all) :%s/a/b: the first a in each row is replaced with b :%s/a/b/g: Replace all A in
About VIMVim is a powerful full-screen text editor, which is the most common text editor on Linux/unix, which is used to create, edit, and display text files.Vim has no menu, only commandsThree modes of VIM: Command mode, insert m
Vim is a well-known, powerful, highly customizable text editor similar to VI, which improves and adds many features on the basis of VI. Vim is purely free software.So a well-configured vim will certainly be more handy to use.650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0036.gif "alt=" j_0036.gif "/> That question came, in the end how to configure it???First open the port (terminal) under
Vim text editor under the Linux command lineVim text Editor is a very powerful tool that can do many things, such as creating new files, opening files, editing files, saving files, and opening multiple files at the same time. Here is a summary of some of the commonly used VI
you want to look for, if the first keyword is not what you want, you can always press "n" will look back to the keyword you want."? keyword": Press "?" first Key, and then enter the character you want to find, if the first keyword is not what you want, you can always press "n" will look forward to the keyword you want.
Save File"w": Enter the letter "w" the colon to save the file.
Leave VI"q": Press "q" is to exit, if you cannot leave VI, can be "q" followed by a "!" Forced to leave VI."wq"
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.