Reference: http://blog.sina.com.cn/s/blog_7d0c2fed01010zbi.htmlSystem: Ubuntu14.04When using the VI command, the file cannot be edited normally, and there are always many letters when using the arrow keysThe problem is that the new system is directly installed VI, not installed VIM. Because VI is not able to press backspace directly to delete characters, so when
Course connection: Vi Text Editor
Vi and vim
Vi is a text editing tool on the command line interface. It provides text editing, text processing, code development, and other functions.
Vim is the strong version of vi (Code highlighting)
Run vim to start the vim
Course connection: Vi text editor vi and vim introduction vi is a text editing tool on the command line interface. it has functions such as text editing, text processing, and code development.
Course connection: Vi text editorVi and vim
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 display text files. Vim/
certain permissions
/mnt
Default mount for CD-ROM and floppy drive directories
/boot
Store boot-related files
/etc
Storing configuration-related files
/var
Storage of frequently changing documents
/usr
Default installation path for software
3. Use of the Vi editor
In the previous chapter we talked about the basics of vim, such as how we open and close files, how to edit, and so on, as well as the transformations between the many modes of vim and the common editing commands, then we introduce the last-line mode of vim and the use of the built-in command-line interface.first, Vim last line modeVim's last-line mode makes the VIM Editor's function perfect, making its editor
The VI editor is most frequently used in Linux, and is divided into three working modes: Command mode, input mode, and last line mode, and operation commands are not the same in each working mode.Command mode to enter after opening a file with VI
Switching between three modesIn the command mode, the use of a, I, O
First use the VI Editor to define the file to mount
I've described how to mount a partition before.
Press the O key with Vi/etc/fstab to insert
The first column indicates the source of the hanging device, such as:/DEV/SDB1
The second column indicates where to go. For example:/MNT/SDB1
The third column represents the format type, for example: EXT4
The fourth
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 Unix like systems wi
Yesterday installed a soft NAS system operating system is the Debian system, because the need to set the system code, it is intended to edit under. Results with VI Open after the direction of the key to become ABCD.Workaround: Switch VI to non-compatible mode. Open VI# VIIn the check mode, enter the following two commands
, you only need to press return. (??? Try and find that the installed version is different. When replacing, Press Y. If it is not replaced, press n. You do not need to press return)
Note:N (repeat the previous search) and vertex (.) of vi (.) (repeat the previous command) the combination of commands is also a very useful method, it can quickly flip pages in the file to execute modifications that do not want
right key).Under the plain text terminal:Select a text block, using the VCopy the selected block to the buffer, using YCopy entire line, with YYOpen the second file in the same edit window with: SP [filename]Switch between multiple edit files, using ^WWShear block, with DCut the entire row with DDPaste the contents of the buffer, using the PThe command preceded by a number indicating the number of repetitions, plus the letter indicating the name of the buffer used.To get help, by using: helps [
Help !!! Find out the commands of the vi editor in red-flag Linux-Linux programming and kernel information. For more information, see the following. I use vi to compile c in red-flag Linux, but I don't know how to save it. My classmates told me that "alt +;" doesn't work. He uses redhat. which of the following heroes c
Course connection: Vi Text EditorVi and vim
Vi is a text editing tool on the command line interface. It provides text editing, text processing, code development, and other functions.
Vim is the strong version of vi (Code highlighting)
Run vim to start the vim editor.
Vim + target path
If the file exists, open the
-v4.4.0.tar.gzCurl network requests, such as Curl http://www.baidu.comWhoAmI View Current user| pipe breaks can be used to connect multiple commands, and the last (command) execution results as arguments for the next (command). grep matches content, typically combined with pipe breaks1.1VI Editor as Notepad under Windows,vi E
/mnt
Default mount for CD-ROM and floppy drive directories
/boot
Store boot-related files
/etc
Storing configuration-related files
/var
Storage of frequently changing documents
/usr
Default installation path for software
3. Use of the Vi editor
Vi Hel
Text editor Vim:Vim/vi is a powerful full-screen text editor that is the most commonly used text editor on Linux/unix. Its role is to create, edit, display text files.Vim/vi no menus, only commands.Insert Command
Command
Role
A
Append
Vim is a reinforced version of VI, it is recommended to use VIM.Vim has three different modes:Command mode (normal mode)After Vim starts, it enters command mode by default, and any mode can be returned to command mode by ESC. Command mode can be done by typing different commands to complete the selection, copy, paste, undo and so on.Insert ModeType the i key in the command mode to enter insert mode, edit th
The VI Editor is a text tool that handles ASCII data. Most Linux distributions already have the VI editor installed by default. VI is the abbreviation for Visual interface vim is the visual interface improved is the enhanced version of the
RedHat 9.0 Linux under the VI Editor for simple paste copy cutting function ":If you want to paste the third line in the file into line 15th:1. Enter your file (in command mode, not edit mode)2. Move your cursor to the beginning of your third line (with the arrow keys)3, press V, (you find switching to Visual mode), press the arrow keys, know what you want to select4. Press Y, and then move the cursor to th
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.