Global find substitution:%s/stext/rtext/gLike what::%s/text/txt/g is to replace all the text into txt. How does vim collectively indent a piece of code or vice versa?
Very simple, by V into the visual mode, select the code to indent, press > Indent
1.VI is the abbreviation of "Visual interface", its status on Linux as if the edit program on DOS. It can perform many text operations, such as output, delete, find, replace, block operations, and so on, and users can customize them according to
Vim is an upgraded version of VI, which is displayed according to the text attributes, with the following details:General mode:1. Cursor Positioning:Move left and right one character, H LMove one character up or down, K JLeft and right down, around
The IDE under the Mac is really bad, eventually giving up the IDE ready to use VIM to see the code, then you need to set up vim.Place the home directory below. The VIMRC in Vim is replaced with the following:"Set vundle Settings here"git clone https:
Vim enters vim on the command line and goes to the VIM editorI press the I key and the lower end shows the--insert--insert commandESC exit I (insert) command for other commands to use: R file name reads into a file content and writes to the current
Exit Save: WqExit and force Save: wq!Force quit, do not save: q!Cursor moves to the last line of the file GCursor moves to the first line of the file GGMoves the cursor from the cursor position to the beginning of the current line ^ 0 homeMoves the
When using VIM to split the screen, you can enter directly at the terminalvim-on 1.php 2.php 3.phpVertical split screen three filesWhat if you want to open another file in a window?Press ESC, and then press the colon to enterEnter to getOf course I
(i) Vim editor
Text Editor: Plain text, ASCII text;unicode, no HTML, or metadata such as formatting tags in Word documents
Type of text editor
Line Editor: SED
Full Screen Editor: Nano,vi,vim
Vi:visual Interface
The important task of a system administrator is to modify and set up configuration files for some important software, so at least you have to learn more than one command-line interface for this article editor.At the end of this article, we will look
Vim new starter VIM Advanced Advanced Tutorial vim keying diagram Vim Official document
h or LEFT ARROW key (←) The cursor moves one character to the left
J or DOWN ARROW key (↓) cursor moves down one character
K or Up ARROW key (↑) The
Multi-line Comments:1. Enter command-line mode, press CTRL + V to enter Visual block mode, then press J, or K to select multiple lines to mark the lines that need comment2. Press the uppercase letter I, and then insert the comment, for example #3.
first, the visual modeThere are three ways to enter the visual mode: V,v,ctrl+v(1) Press V to enable Visual mode, to select content by a single character,Move the cursor to select.such as:(2) Press V to enable the visual mode, immediately select the
1./forward lookup,? Reverse Lookup2. \v activates very magic search mode, writing regular expressions closer to Perl regular expressions, most characters do not need to be escaped3. \v activates Noverymagic mode and searches by word literals.4./E,
One, insert commandA specifier insert in the word cursorA at the end of the line where the cursor is insertedI match either insert in the word cursorI Insert at the beginning of the cursoro Insert a new line under the cursorO insert a new line on
Enter into input mode in command-line mode to tap I, A, O, S, I, A, O, SThe difference between them makes a memo:
I: Start insertion at the cursor position match either
A: Start inserting in the word specifier the cursor
o: Insert a
Say in front--a byte of Vim is the best book I've ever seen about vim, someone who wants to learn about the powerful vim, or someone who is already using VIM and intends to learn more about it, I think I should look at this, the content is refined
The VIM editor uses plotsVim is a kind of vi-like text editor, but on the basis of VI added a lot of new features, Vim is generally respected as the best of the Class VI editor, in fact, the real enemy from the different variants of Emacs. 1999
This week we went on to learn the other features of the Vim editor that we didn't finish last week, first learning to use VIM to edit multiple files, vim files 1 files 2 files 3 .... Then we learned to populate the current file with other files,
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service