Common options for the Vim text editor under Linux.VIM (Visual interface improved) is an enhanced version of the VI editor, small but powerful, is the most frequently used Linux system Text editor, so learning Vim is also a necessary skill to learn
Enter the root and directory:CD/root
2. Create. vimrc (this file does not exist by default. Note that there is a "." point in front of the file name. Is a hidden file), the configuration content is as follows:Set hlsearch # High Brightness
In Red Hat Linux, the Administrator's vim configuration file is stored in/etc/vimrc. Set nocompatible // remove the VI consistency mode to avoid bugs and limitations of previous versions Set nu // display the row number And so on. You can view
Address: http://vitaminj.blogbus.com/logs/35851648.html
1. In ~ /. Vim/C-support/templates can be used to set copyright information, such as the author, mailbox, and copyright ownership. C or. the CPP file is visible and lists the locations where
ArticleDirectory
Step 1: Download C. Vim
Step 2: Install
Step 3: Enable this plug-in
Feature 1: Add automatic header to *. c file
Feature 2: Use "If to add a c Function
Feature 3: Use "IM to add the main function
Feature 5:
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
Install
In centos, we can directly use the yum command for installation.
Overall steps
Install cscope
Configure the vim configuration file
Generate a cssag. Out File
Use the cssag command to perform operations
Cssag Installation
Download on
Vimm (vimsual) is a full-screen editor used in Linux/Unix OS.
Vimm is divided into two states: command status and edit status. In command status, the entered character system performs command processing. For example, Q indicates that the system
From: http://blog.csdn.net/endall/archive/2007/08/29/1764554.aspx
The Regular Expression Function in VIM is very powerful. If you can use it freely, you can perform many unimaginable operations.
If you are familiar with regular expressions of Perl,
Move the cursor by sentence
()
.? ! The end of the sentence, followed by a space, is called the sentence code, which is more practical than paragraph movement.
Move the cursor by segmentIs to move to the next blank line ''can return {}
Do you want to learn vim, the best text editor in history, as quickly as possible? You must first learn how to survive vim and then learn various tricks.
I suggest the following four steps:
Alive
Feeling good
Better, stronger, and faster
Use
Anyone who has used VIM to edit Chinese documents knows that the command line mode is required after each editing.
If you forget to press SHIFT to switch the Chinese/English input, you will find that the commands after pressing ESC are all Chinese
Clang_complete vim simple configuration, clang_completevim
Vim is very powerful. You can view it through man vim (man is the manual for viewing commands, and man can view the corresponding usage by adding commands)
Below is a brief description of
Xin Xing deeply analyzes vim's automatic complementing function and vim ing
In the past, all the auto-completion functions of vim were downloaded from the Internet when needed, and copied to their own vimrc. I didn't know what it meant, the results
Sometimes copy and paste the code from the editor to vim, and the code format will be completely messy. The reason is that vim has enabled the smartindent or autoindent mode. To maintain the code format, you can stop the above two modes before
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