Vim replacement character:Syntax: [ADDR] S/source string/destination string/[Option]Global replacement command: % S/source string/destination string/g[ADDR] indicates the search range. If it is omitted, it indicates the current row.For example, "1st"
As Vim is used more and more, we feel the power of VIM. For example, we need directory browsing recently. So we searched for related things and found a lot of knowledge on the Internet, however, it is complicated, so you just need to spend some time
This article mainly explainsText Selection in VIMIn vim, the selected text is divided:(1) Select character ---- input in Command Line ModeLower case v(2) Select a line-input in Command Line ModeUppercase v(3) Select block-input in Command Line
When performing simple global search replacement, you can use the following ex command: : % S/which/what/g It is easy to use
%
Each row (everyline)
S
Replace (substitue)
Which
Search
Vim-Addons status Displays the extensions installed in the system, which are enabled for the current user, and which are disabled. Vim-Addons install extension-name Install an extension for the current user, that is, create a symbolic link
Download
Wget http://www.vim.org/scripts/download_script.php? Src_id = 19574-O taglist.zip
Then decompress taglist.zip ~ /. Vim/directory
Use the following command in VIM to switch the taglist display.
: Tlisttoggle
Use Ctrl + W to
Enter the following command:
For example, the Zo command First presses the z key, releases it, And then presses the O key to expand and collapse.
1. Enable and disable folding
Zo
Expand and collapse. Only the outer layers are folded.Zo
Expand All
I personally think the vim configuration will be helpful to the novice, because I am also a newbie, please ignore it.
When we installed Ubuntu, we may not have Vim. We can only use VI. Vim is an upgraded version of VI. We are not used to the vim
Since the 70's, VI and Vim are very popular text editors among programmers. 5 years ago, I wrote an article named "100 Vim commands Every programmer shoshould know" and here is a reworked, updated version. enjoy!Basics
: E filename
In VI, moving the cursor and editing are two things. Because they are distinguished, you can easily perform optical calibration.It is useful to move the cursor a little faster. The C-representation in the text is Ctrl, case sensitive. Cursor
It is worth mentioning that the PDF version of my vim tutorial has been completed. You can download it. Here is the download of csdn: csdn. If the download fails on the left, you can also enter the following address in the browser to download: http:/
1. Common Vim Functions
Common functions of VIM, including block selection, copying, multi-file editing, and multi-window functions.
2. Vim Block Selection
Block Selection is to copy and paste one part of the document without the entire line of
Xin Xing and you disable vim's automatic backup function
When we use gvim to edit a file, ~ If we do not want to automatically generate a backup file when editing the file, we need to modify its configuration file, but I did not find the
Xin Xing will share with you some tips on vim.
There is no doubt that vim is profound and profound. Here we will share some tips about vim, which I discovered today, because I just switched to vim soon, I am not familiar with many functions of vim,
Vim and vim Official Website
When performing simple global search replacement, you can use the following ex command:
: % S/which/what/g
It is easy to use
%
Each row (everyline)
S
Replace (substitue)
Which
Search
Xin Xing is playing with you on the Operations text in vim section 4.
It is worth mentioning that the pdf version of my vim tutorial has been completed. You can download it. Here is the download of csdn: csdn. If the download fails on the left, you
Vim-) move the cursor
Movement
Command
Flip the screen
Ctrl + F
Flip the screen
Ctrl + B
Front Half Screen
Ctrl + D
Half screen flip
Ctrl + U
Roll Forward a row
Ctrl + E
How to Use the vim command to move the cursor
It is worth mentioning that the pdf version of my vim tutorial has been completed. You can download it. Here is the download of csdn: csdn. If the download fails on the left, you can also enter the
How to Use the vim command to move the cursor
It is worth mentioning that the pdf version of my vim tutorial has been completed. You can download it. Here is the download of csdn: csdn. If the download fails on the left, you can also enter the
Use vim (1): Basic commands1. vim has three modes: Normal Mode, edit mode, and command line mode. 2. In normal mode, use vim to open a file and enter normal mode. In this mode, you can delete characters and lines and copy and paste file data. 2.1
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.