Download and install gvim gvim71.exeDownload ec57w32.zip (ctags) to connect to ctags
Decompress the package and copy ctags.exe to C:/Windows/system32/Download the taglist
Decompress the package and copy the plug-in/taglist. Vim DOC/taglist.txt
Range () is a new function used to generate a list containing a number sequence. Of course, it can also be used to generate row numbers:
"Add the row number for the first 30 rows: for I in range (31): Call setline (I, I.''. Getline (I): endfor
Are you tired of setting the line number, indentation, and highlighting every time you open Vim. Have you ever thought about creating your own Vim so that every time you open your vim, it can be the configuration you want? It is actually very simple,
In ubuntu, the vim configuration file is stored in the/etc/Vim directory. The configuration file name is vimrc.
In fedora, the vim configuration file is stored in the/etc directory. The configuration file name is vimrc. In Red Hat Linux, the vim
If it's too simple, you can find a manual. Here we will talk about some tips. It's also recently used to make it easy to learn.
1. Global replacement(1) V + G + $ select all, and then enter: S/original string/Target string/(2): % S/original string/
1. Enter the character page
2. Create a folder to store the source file
MkdirHelloworld // create a folder
CDHelloworld // enter the new folder. Here we should say that the directory is better, and Windows is used to it.
VimMain. C // open
Configuration Overview:
1. automatic matching of brackets [all types of brackets and quotation marks are supported]
2. One-click addition of syntax template, author, time, and other information
3. One-click compilation and running of a single source
On G +, we can see the introduction from netizens and find that Vim can highlight the code into HTML documents according to the current syntax. This is a very considerate small function.
For me, this function has at least two functions. First, put
1. Split the screen to start Vim
Use the uppercase o parameter to split the screen vertically. Vim-on file1 file2... use the lower-case o parameter to split the screen horizontally. Vim-on file1 file2...Note:N is a number, which indicates several
Multiple tagsOpen the file in the form of multiple tags before entering vim-P . For example, VIM-p * is used to edit all files in the current directory. In Vim editing, tabnew adds a label: tabc to close the current tab: Tabo to close all other tabs:
Qtcreator is really tough to use. Use vim. Plug-in omnicppcompletion, generate the tags of STL and qt4 as the basis for all-around completion, and then generate
Tags is used as a jump and complete update.
Different from the reference:
1. The
Some common operations of VIM plug-in zencoding
Pretty cool, record some common operations
Easy to install, no longer like I used sparkup. Vim to configure the python environment, can be directly connected to the
Although in. vimrc sets: Set aiset Si can intelligently align thml on Windows 7 using the "=" equal sign key. Although C files can be intelligently aligned on Linux, HTML cannot. Linux and VIM really have a lot of preferences for C. The solution is
My Vim configuration (with annotations) is relatively simple and practical, and will be updated continuously in the future based on the function addition.
If you need to copy the following content to the. vimrc file in the user's home directory,
From: http://blog.csdn.net/jixiuffff/article/details/5695806
Install Vim first (of course, JDK installation is required for Java development)
Emerge-AV Vim (install the vim command on the Gentoo system, you can use rpm, Apt-Get)
Install the
1. View function/variable definitions
3. Set the tags search path of vim.
Edit ~ /. Add a line to the vimrc File
# Add this line to let the ctags search tags in the file "/opt/GTK/tags"
Set tags + =/opt/GTK/tags
4. move the cursor to the
This problem has plagued me for a long time.
During large-scale copy and paste with the mouse, due to the existence of the comment lines in the Code, the indentation will become longer and longer, and the entire back is messy and all are commented
: So % re-load. vimrc
= Vim
/Search: Nohlsearch Remove selected words
: % S // replace all ig: S // + & replace specified rows
> Indent4> indent four lines
J. merge two rowsCTRL + F.CTRL + B full screenCTRL + D.CTRL + u upper screen.CTRL + e move
Because I have been using the VC + VC assistant for development in windows, so I have long been used to the syntax highlighting and Automatic completion, so I am a little uncomfortable in VIM development, therefore, we want to slightly change the
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