1. General mode
In general mode, you can copy and paste the newly opened interface such as:
X,x x to delete one character backwards, X to delete a character previouslyNX (n represents number) Delete n characters backwardsDD Delete when forwardD
Vim is a powerful text editor, by default there are three modes: Command mode, insert mode, edit mode, use # Vim file to open a file, the default into the command mode, different modes of direct switching as followsA. Command mode switch to insert
situation 1: in CentOS or Debian and other Unix systems, when using VIM to edit the file, input Chinese, Chinese garbled:
#vim/ROOT/.VIMRC
Enter the following configuration:
Syntax on
set fileencodings=ucs-bom,utf-8,utf-16,gbk,big5,gb18030,latin1
Http://blog.sina.com.cn/s/blog_94a93cff0101b5gv.html
To replace text in VIM:1. Replace the contents of the current line:: s/from/to/(S-substitude): s/from/to/: Replaces the first from in the current row with the to. If the current row
VI (VIM) is a very common code Editor on Linux, many Linux distributions are installed by default VI (VIM). VI (VIM) command a wide range but if used flexibly will greatly improve the efficiency. VI is "visual interface" abbreviation, VIM is VI
Ubuntu 14.04 + vim + ctags + taglist installation and use
install Ctags, and execute the following command:
sudo apt-get install Exuberant-ctagsNote: You can also use the source code installation
to install TagList, follow these steps:
1. Download
1, continuous input the same characters
For example, enter 10 consecutive #: + + i + #
2, exchange two consecutive letter position
For example, swap the first and second letters in the RPINTLN (change to println), then move the cursor to the
Turn from: http://www.open-open.com/lib/view/open1414227253419.html
TagList Click on the Open link
TagList is a plug-in used to display various symbols in the locator, such as macro definitions, variable names, struct names, function names, which
Using Vim can be useful for some powerful functions. This section describes its advanced features.
First, the abbreviationAbbreviations for words: IAB AD AdvertisementWhen you type AD, the advertisement is automatically completeAbbreviations
ThreeVI and VIM The biggest difference is to edit a text VI does not display color, vim display color.
Installation: Yum install-y vim-enhance
There are three modes of VIMA: General mode
Up or down cursor KJHL
ctrl+b Text
With VIM + cssag/ctags, You can implement the sourceinsight function. In the future, you can stop using pirated souceinsight to readCode.Add the cscope function. after vimrc (you need to select the "-- enable-cscope" option during vim compilation;
Linux Vim has an error in hexadecimal format. When viewing and editing a binary file, you must add the-B parameter.
Today, you need to check the hexadecimal file. When debugging, you find that something is wrong. After comparison, we find that Vim
FreeBSD Security Vim
FreeBSD Security Vim
[FreeBSD Vim]
1. CD/usr/ports/Editors/Vim
2. Make-dwithout_x11 install clean # Vim
3. CD/root
4. VI. vimrc # Add preference settings
5. Note! Do not import the Chinese interpretation of the following
Vim played in windows. after moving to Ubuntu, VI is very awkward (especially the items on the clipboard cannot be paste in vi ...) and so on... I plan to convert VI to VIM, which may be much better. don't talk nonsense, start action. it is
Wcdj
Winhex is a small tool dedicated to dealing with various daily emergencies. It can be used to check and repair various files, restore and delete files, and data loss caused by hard disk damage. It also allows you to see the files and data
Reprinted please indicate this blog from "LIU Da csdn blog": http://blog.csdn.net/poechant
1. Multi-file editing mode
(1) The argument list mode contains multiple file path parameters when opening the vim editor.
(2) buffer list mode: after
VI/Vim usage
Document operationsVI/Vim basic usageThis article introduces the basic usage of VI (Vim), but it is enough for common users!The VI editor is a standard editor for all UNIX and Linux systems. It is not inferior to any of the latest text
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