Use Vim, vimMode
ESC \ Ctrl + c: Exit edit mode
ZZ \ wq: Save and exit in command mode
Edit
I: Enter the editing mode.
I: Go to the beginning of the line to start editing
S: deletes the current character and enters the editing mode.
A: edit
Basic VIM operations in CentOS
There are many text editors, including gedit and kwrite in graphic mode, vi, vim (enhanced version of vi), and nano in text mode. Vi and vim are the most commonly used editors in Linux. Someone once said that there are
A deep understanding of the blank characters and line breaks in CSS, css characters and× Contents [1] white-space [2] word-wrap [3] words before word-break
CSS3 adds two new line feed attributes: word-wrap and word-break. Put a blank character and a
The regular expression can be:• Test a mode of a string. For example, you can test an input string to see if there is a phone number or a credit card number. This is called Data Validity verification.
• Replace text. You can use a regular expression
Linux Command-VIM basics 1. Basic operations: 1. Switch normal mode and edit mode with ESC and I keys www.2cto.com 2. X → delete a character of the current cursor. 3. : Wq → save disk + exit (: w save disk,: q quit) 4. Dd → Delete the current row
Vim commands and vim commands
1. About Vim
Vim is my favorite editor and the second most powerful editor in Linux. Although emacs is recognized as the world's No. 1, I think it is more efficient to use emacs without using vi for editing. If you are
I. Introduction to Aix
Aix is one of the versions of Unix operating systems. It is mainly used on the IBM Xeon 6000 series computers. Other Unix systems, such as SUN's Solaris, HP Unix, and Linux. Currently, the Aix system versions include Aix 4.x
File search commands and search commands
1. Copy the/etc/skel directory to/home/tuser1. The owner group of/home/tuser1 and its internal files and other users do not have any access permissions.
1 [root@bogon home]# cp -r /etc/skel /home/tuser1 2
Transferred from: http://blog.sina.com.cn/s/blog_98cf2a6f01015b220.html, thank you !!1. Three Modes of survival: insert mode, command mode, regular mode I -- move the cursor to insert mode A -- move the cursor to insert mode ESC -- return to normal
1. Copy the/etc/skel directory to/home/tuser1. The/home/tuser1 and its internal file groups and other users are not authorized to access it.
2. Edit the/etc/group file and add the group hadoopRun the vim command to open/etc/group, press g, O, and
VI-powerful full-screen editor
VI Introduction
Text editing is probably the most frequent operation in the system.There is a standard and powerful Editor, namely visual edtior ).
For Linux beginners, VI may be extremely unfriendly.Good-all
During the written test today, I encountered a question about C-language scanf functions.
int x;float y;scanf("%3d%f",&x,&y);// input 123456 678 enter and then what's the value of x and yprintf("%d %f",x,y);The execution result of the program is:
12
Vi (Visual Interface) is a text editor with a common text compiler that has ASCII encoding, Unicode encoding, and so on. Vim is VI improved: is the enhanced version of VI, Vim is a modal editor.There are 3 modes of VIM in the work:- edit mode: Also
1, copy/etc/skel directory for/home/tuser1, request/home/tuser1 and itsGroup of internal files and other users do not have any access rights. [Email protected] ~]# cp-a/etc/ske1/home/tuser1[Email protected]/]# chmod-r go-rwx/home/tuser12. Edit
Occupy position, to be perfected.Vim Editor:Full-screen editor: VIMVi:visual interfaceSed: line EditorVI, VI improvedVim:Pattern:Edit mode: Command modeInput mode:Last-line mode:Edit mode--Input mode:I:insert,A:append,O:new Line,I: The beginning of
Copy/paste
p→ paste after the current position
p→ pasting before the current position
dd→ Delete the current row and save the deleted row to the Clipboard
yy→ copy Current line of business in DdP
Edit
1. grep filters out the specified linegrep [-CINVABC] ' word ' filename--color the match to the key words in red logo such as: # grep--color ' root '/etc/passwd-C: Print the number of lines that meet the requirements-I: Ignore case-N: Output with
Linux OPS Practice-August 30, 2015 Course assignments 1, summarize the text editing tool vim use method; Vim: Full-screen editor; Vim's editing mode: Edit mode: Command mode; The two meanings are probably the same. Input mode, last-line mode. Edit
First, homework (exercise) content:1, summarize the text editing tool vim use method;2, summarize the document Search command find use method;3, summarize the content of bash environment variable;4. Summarize the knowledge points of special
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.