Two steps:
1. Remove the annoying VI consistency mode to avoid bugs and limitations in earlier versions.Set nocompatible
2. There are several ways to work with backspace. By default, backspace is VI compatible. This is not a habit for new users.
Add the following to. vimrc:CodeAfter that, restart Vim to generate four spaces by pressing tab:Set Ts = 4 (Note: ts is the abbreviation of tabstop, with four spaces in the tab width)Set expandtab
For saved files, use the following method to
Add the following to. vimrc:CodeAfter that, restart Vim to generate four spaces by pressing tab:Set Ts = 4 (Note: ts is the abbreviation of tabstop, with four spaces in the tab width)Set expandtab
For saved files, use the following method to
The bufexplorer plug-in can open the list of historical files to quickly switch files. With the installation experience of the previous plug-ins, this is very simple, after the plug-in is installed, you do not need to configure the _ vimrc file (of
Bufpos Plugin:
Http://www.vim.org/scripts/script.php? Script_id = 1, 1836
Buftabs plug-in:
Http://micampe.it/files/buftabs.vim
This is the buftabs version that the author of bufpos has made minor changes.
Put the downloaded bufpos. vim and
Author: laruence ()
Address: http://www.laruence.com/2010/08/18/1718.html
Reprinted please indicate the source
Let's talk about it first. Vim has released 7.3 ..
When looking at the vim plug-in, I found an interesting application (not a
Grep does not support regular expression matching.
Egrep supports regular expression matching, but the extension does not.
Find Vim /? : Regular Expression matching is supported, but not extended.
Common examples:
Grep XXX 123.logBasic
In the past, the vim provided by Debian was Vim. Tiny. syntax highlighting and other functions were not supported. Run the following command to find that Vim is under/usr/bin.
Whereis Vim
The following command shows that both VI and Vim are linked
Edit a binary file
Vim can easily edit binary files. I personally think it is easier to edit binary files than Emacs. In vim, the binary file is edited by dumping the file into its binary text format through the external program xxd, and then the
Use gvim to establish an IDE programming environment (Windows)
Note: This article describes how to use gvim to build an IDE environment on Windows XP Based on the famous article "how to convert Vim into an IDE programming environment.Original
VimIntroduction
Source: http://www.cnblogs.com/Henrya2/archive/2009/02/21/1395584.html
Vim (VI improved) is a text editor similar to VI. It adds many new features and functions based on VI. With its powerful functions and customization capabilities,
Vim-complex repeats
Vim can record your operation combinations into registers, and then call this operation combination through the shortcut key, which is very quick. In normal mode, enter:
Q {0-9a-za-z "} → Q starts recording, {0-9a-za-z"}
Plugin:
Taglist:I believe that everyone knows its name and is used to provide functions such as the function list of a single source code file.
Omnicppcomplete:Provides automatic completion of C ++ code
A. VIM:Quick Switch between. h and. cpp
Gvim's default color scheme is not very good, so I want to set a color scheme myself. For example:
However, this method can only set the color scheme of the currently edited page. How can we make all pages use this color scheme?
First, we can
There are three programming tools in the world: Emacs, Vim, and various ides. Over the past 10 years, the IDE programming environment has gained considerable market position thanks to the great promotion of funds. However, the historical development
Vim command: % S/^ \ n/g
It indicates that all the characters starting with the carriage return are replaced with null.
By the way, I studied
If there are multiple consecutive empty rows, you want to keep one
Vim command: % S/^ \ N $/g
Vim Help File (Chinese ):
Http://vimcdoc.sourceforge.net/vim_user_manual_603.0.pdf
We strongly recommend that beginners of VIM be afraid of reading help files! Thanks to the translator zhaorufei.
Vimdoc project home page in:
0,: G/null/d
Locate the null row and delete it.
1. Simple replacement expression
The replacement command can replace another word with one word in the full text:
: % S/four/4/g
The prefix of "%" indicates that replacement is performed in all rows.
I. Overview
First of all, VIM + cssag + ctags are really powerful. I feel very ashamed of it for me who have been playing in Linux for nearly two years. I have rarely used Vim before, and have never touched cssag and ctags. I also use gedit and find
When writing a Python script this evening, you need to configure Vim again. Now that you have configured it, share it with us. We can make a backup here.
In the past, I seem to have written articles about Vim configuration, but this is not my
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