(Author: Ma Weihe. Please indicate the author or source for reprinting ,)
String replacement
1. Replace all matched substrings1 # Replace all substrings in the subject with newstring that match the regular expression RegEx
2 result = Re. sub
How to Use the VI (Vim) editor on Linux
VI (Vim) is a commonly used editor on Linux. By default, VI (Vim) is installed in many Linux distributions ). There are many VI (Vim) commands, but if they are used flexibly, the efficiency will be greatly
Linux programming environment I. vim
The vim editor can be divided into three modes: Command mode, insert mode, and baseline mode, as shown in the diagram of mutual conversion between Vim modes.
Command mode: controls the movement of the screen
Text Editor is the most commonly used tool in all computer systems. In UNIX, the editors include ex, sed, and VI. Among them, VI is the most widely used, while VI commands are numerous. The Forum does not seem to have a summary of this. The
Java 5.0 has been released, and many people will begin to use some new features of this JDK version. From an enhanced for loop to more complex features such as generic (generic), it will soon appear in your code. We have just completed a large Java 5
PHP 5.3 New Features
1 New features in PHP 5.3
1.1 Namespace)
Namespace is undoubtedly the most important new feature of PHP5.3.
In PHP5.3, you only need to specify a different namespace. The namespace separator is reversed \.
// Select.
Detailed sorting of Linux File editing commands
I. vi editor has three basic working modes
The vi editor has three basic working modes: Command mode, text input mode, and last line mode.
1. Command Line Mode: This mode is the default mode after
Vim editor configuration and use. And vim editor configuration
Vim configuration and simple usage.
Install sources for vim and tags use address: http://blog.csdn.net/shaohuazuo/article/details/46745209 blog
Vimrc configuration file can be referred
Linux Study Notes 2-linux basic commands and Study Notes 2-linux
First blog: linux Study Notes 1-ubuntu installation and basic settings, has introduced how to install the linux operating system and some basic settings and modifications.
This blog
In Linux, how does one view, kill, and start processes? (Common commands), common linux commands
Keywords: linux Process query, killing process, Starting Process
1. Check the process
Ps command to find the process-related PID:
Ps a shows all
It took me two days to sort it out, and some of the most common commands that people on earth know would be skipped! Finally, download the pdf manual. command to change the archive owner: chown [-cfhvR] [-- help] [-- version] user [: group] file...
VI is short for visual edit.Text Editor is the most commonly used tool in all computer systems. UNIX editors include ex, sed, and VI. Among them, VI is the most widely used, and there are many VI commands. Enter the VI command.
Go to VICommand
Access the VI command
VI filename: open or create a file and place the cursor at the beginning of the first line
Vi + N filename: open the file and place the cursor at the beginning of line N
Vi + filename: open the file and place the cursor
Regular Expression class
[1] apply a regular expression -- replace the specified content with the end of the row
[2] Regular Expression Application -- digit replacement ---------------------------- microshaoft @ CCF, jiuk2k @ CCF
[3] Regular
Editplus is a powerful text processing software. It can fully replace notepad, it also provides Web writers and
Program Many powerful functions of designers. Supports coloring and display of HTML, CSS, PHP, ASP, Perl, C/C ++, Java, JavaScript,
The search and replacement of editplus. The search in the file supports the following regular expressions:
Expression description\ T Tab character.\ N new line.. Matches any character.| Either expression on its left and right side matches the
Document directory
1.6.1 VI Working Mode
1.6.2 editing mode
1.6.3 Insert Mode
1.6.4 command mode
6. Restore Files
1.6.1 VI Working Mode
After the initial startup, VI enters the editing mode. When you type commands such as I, A, and O in the
Access the VI command
VI filename: open or create a file and place the cursor at the beginning of the first line
Vi + N filename: open the file and place the cursor at the beginning of line N
Vi + filename: open the file and place the cursor at the
V enters visual modeGg select all= Automatic line feed
In Windows, many people use source insight to write and view code. Vim can be used in Linux. At the beginning, VIM is considered as a notepad in windows. If it is used properly, it is not
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.