Note: The following actions are performed in the command state and do not enter the insert state.1. DeleteDD Delete a rowNDD deletes n rows starting at the current lineDW deletes a character starting with the current characterNDW Delete n characters
ObjectiveFirst of all, the analysis of a Vim VI is a very common text editor under the Unix/linux, most of the machines have a variety of VI, on different machines commonly used in different variants of software, which vim more useful also used more
CentOS6.5 enable vim for Python support, configured as follows:1, inspection system has installed the RPM package vim-enhenced;2. Copy the default. VIMRC initialization file:# Cp/usr/share/vim/vim70/vimrc_example.vim ~/.VIMRC3. Configure the. vimrc
Article turned from: HTTP://WWW.LIUHUADONG.COM/ARCHIVES/68The ultimate solution for vim and Gvim in Chinese garbled under windowsIn Windows Vim's Chinese font display is not good, so we need to adjust the font display encoding utf-8, only in order
Because the newly installed Vim/VI does not enable the code highlight configuration by default, we can see that some friends go online again and again to find various configurations. In fact, VIM only copies the configuration file samples by default.
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"
Vim Editor
Question 1: What is the difference between word processors in a text editor?
The text editor only processes plain ASCII files.
Nano (full screen editing), sed (line, command line)
Question 2: What is Vi?
VI: Visual Interface
VIM: VI
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" indicates the number
It took a long time to sort out and shared it easily.
My Vim configuration has the following advantages:
1. Press F5 to directly compile and execute C, C ++, Java code, and shell scripts. Press F8 to debug C and C ++ code.
2. the file header is
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 corresponding configuration items in the vimrc file, so we found
Command
Action
Notes
Vim file + 54
Open File and go to line 54
Any: command can be run using + on command line
Vim-O file1 file2
Open file1 and file2 side by side
Insert
Enter insert mode
So you
The purpose of this article is to summarize some practical and regular Vim commands in daily operations, instead of introducing some basic Vim knowledge, such as several insert modes, hjkl mobile commands, and DD to delete this line, P paste and so
Basic operations
Edit File
Vim [Options] [file...]
Mode
Open the file and enter the normal mode of VIM. You can use various commands to operate the text.
Press the letter I to enter the insert mode. In this mode, all keyboard keys are normal
Excellent repost sharing best code editor Vim from entry to proficient tutorials star reply
Reliable sharing guide: This article is not original to the author. It is a learning tutorial suitable for beginners in the process of learning Vim. I think
Vim/Vi practical skills (version 2)Vim/Vi Practical Skills
1. Import files
: R [file name] # import to the currently edited File
For example, r/etc/inittab
The upper part of the file is the/etc/services file, and the lower part is the/etc/inittab
Use vim (3):. viminfo and. vimrc, vim. viminfo1. viminfoVim automatically records the operations performed in vim and stores them in ~ /. Viminfo file. In this way, the cursor is automatically displayed at the last exit when vim opens the file. The
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
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service