contents of the N1 line to the N2 line to the next N3 line: n1,n2 D: Delete the contents of the N1 row to the N2 row: w: Save the current file: E filename: Open file filename for editing: x: Save the current file and exit: Q: Exit Vi:q!: Do not save the file and Exit VI:!Command : Execute shell command command:n1,n2 w!command: The contents of the N1 line to the N2 line in the file as input and execution of the command, if not specified n1,n2, the ent
VI and VIMvi are text editing tools on the command line interface. they were first developed by BillJoy in 1976 and were called ex. Vi supports the vast majority of operating systems (released on BSD at the earliest), and has very powerful functions, generally available in UNIX-like operating systems. In 1991, BrmMoolenaar was improved based on vi, and vim was re
also change all fields (for example: Windows Notepad).1.1 Text editor kindsIn Linux, there are two types of text editors, one is the line editor, the other is the full-screen editor, the row editor represents SED, and in the full-screen editor, one is the Nano, the other is
The VI Editor is the standard editor for Linux systems. And not inferior to any of the other latest editors. But how much is it going to be used? Here's a brief introduction to the VI Editor and some commands. Let's get you on the
of the window.
Yanyb. h
1: 1 int a = 1;
File1.c
2: 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
is located5). Copy"yw": Copies the characters from the cursor to the end of the word into the buffer."#yw": Copy # words to Buffer"yy": Copy cursor line to buffer."#yy": for example, "6yy" represents a copy of 6 lines of text from the line where the cursor is located."p": Paste the characters in the buffer to the cursor location. Note: All copy commands related to "Y" must be mated with "P" to complete the copy and paste function.6). Replace"r": Repl
Vi/vim Basic Use MethodThis article introduced the VI (VIM) basic use method, but for the ordinary user is basically enough. I/vim the difference is simple, they are multimodal editor, the difference is that vim is VI upgrade version, it is not only compatible with VI of all
VI and VIM1. Introduction:The VI Editor is the standard editor for all UNIX and Linux systems, and he is the equivalent of a notepad in the Windows system, which is no less powerful than any of the latest text editors. He is a tool we cannot use without a Linux system. Because of any version of UNIX and Linux systems,
) the PS Viewing system process information - Kill kills the processWuyi the - Other Commands Wu Find File - Find. –name a.txt Locate the A.txt file in the current directory (. Indicates the current command) AboutFind/dev-name std* in/Dev directory finds files beginning with Std $ grep Find Text - CMP Compare files (rows and columns of output differences) - diff comparison file (text at the output difference) - ifconfig Network
Then the previous article continues to explain some simple text editing commands in the VI editor. This article is mainly the deletion of text, copying, moving and other commands.Delete text:As mentioned in the previous article, the Delete command ("D") also has the use of "(command)" (Textobject), where the command stands for
Run the "vifilename: open or create a file" command in the vi editor of linux, and place the cursor in the first line vi + nfilename: open the file, place the cursor at the beginning of line n vi + filename: open the file and place the cursor at the beginning of line n vi +/
Tags: targe new tar switch insert mode set for also modeVI (VIM) is a very common editor on Linux, and many Linux distributions have VI (VIM) installed by default. VI (VIM) commands are numerous but if used flexibly it will greatly improve efficiency. VI is the abbreviation
Many people use the simple SSH connection tool, sometimes need to copy files in SSH to the local view more convenient, I would introduce a simple command of the SCP.The SCP is a security file copy, based on SSH login.Easy to operate, such as to the current one file copy to a remote other host, you can follow the commandscp/lw/a root@xx.xx.xx.xx:/optIn turn, copy remote files to local vi Start and exit, work mode, command Daquan
VI belongs to the Linux kernel built-in command (vi editor)1. Vi/vim Working principleBefore you learn Vi/vim editor parameters and shortcut keys, you need to understand how Vi/vim work
Vi and vim Editor (14): vim Overview
Vim refers to "vi improved", that is, the ultimate version of vi. Currently, vim may be the most widely used similar vi product.
Overview:
Author and brief history:
Vim is written by Bram Moolenaar and assisted by others. Therefore, vim c
Vi and vim Editor (8): Global replacement (1), vivim
This chapter describes the global replacement commands in the vi editor. The global replacement command can be used to automatically replace all words in the file. Generally, two ex co
The previous article has learned how to replace globally with the ": S" command in the VI editor, and you can use regular expressions in replacement commands for strong pattern matching. This article will learn more examples of pattern matching to further familiarize yourself with regular expressions.Example of pattern matching:(1) match a complete word: as shown
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 text
Vi text editor command,
Basically, vi is divided into three modes: "General mode", "edit mode", and "command column command mode 』. The functions of these three modes are as follows:
General mode:Open an archive in vi and enter the normal mode (this is the default mode ). In this mode, you can use the top, bottom, an
commands do not have an action. And when the window is rotated, the cursor moves with the window;
"^WX": The position of the peer or the same column window can be exchanged. The default is to swap the position of the current window with its next window, and if there is no window below, try swapping the position with the previous window. You can also add a quantity before this command to exchange the position with the specified window;
Move t
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.