I used to work as an intern in a company on Ruby on Rails. Aptana is used as the IDE, and its speed is sometimes very slow. Then we can see that some old employees in the company use Vim as the compiler. Looking at how they use Vim to make their own
Recently I used two plug-ins, xptemplate and neocomplcache, to make Vim easier to use. In the past, when using autocomplpop, I thought it was not bad because the speed was very slow and I reported an error from time to time. Now I 've changed the
Recently, we have been tossing over Vim exceptions on Mac, and many small problems are hard to solve. In order to replace the terminal with iterm with 256 colors, but for a better visor, we had to continue using the terminal in the band. So I
In VI/vim, copy and use "Y" and delete with "D". What about the clipboard? The clipboard is deleted and then pasted. The original deletion is not a real deletion, but a buffer.
Copy1. In "YY" editing mode, copy the content of the row where the
Gvim is smaller than Emacs and is suitable for programming. The latter has full functions, many plug-ins are loaded, and the startup is slower. Individual gvim is sufficient.
Vim can edit a variety of character encoding files, including UCS-2, UTF-
: Edit otherfilename "edit another file, but you need to save the original file in advance"
: Hide edit otherfilename "edit another file, you do not need to save the original file in advance"
Vim one. C Two. c Three. c "specifies multiple files
Some time ago, the company opened a new virtual machine, installed rhel5, And suddenly did not install Emacs during the installation. It was difficult to install it, but found that syntax highlighting is also so complicated. In one breath, I also
Although Vim was used a long time agoTuneClick here and use only the commands you want. Recently, in order to improve code writing efficiency and coding fun, I re-studied vim and found a good Vim getting started article. The original Article is in
For example:
1. How to delete other rows by retaining only Matching content rows?
: V/pattern/d: Help: V2. How to keep Matching content for each row and delete other content in this row: % S/^. * \ (pattern \). * $/\ 1/g3. Delete rows containing
Reprinted please indicate the link and author huihui1988
After using Vim for a while, I like this simple and efficient editor. Just as I was learning QT, I turned Vim into a tool for developing QT. The specific configuration is as follows.1.
Summary of common replacement modes in vim.
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
In vim, I usually use visual mode to select some text and then use the ZF command to collapse the text. However, it is not very convenient to use visual mode, however, it is not very convenient to use it frequently. the command mode can be used:
You can use vimgrep; in the following example, find *. cpp, *. H, *. ASM in this example (including all sub-projects )."Dmcnet"A list of related words (search results are shown in quickfix window)
: Vimgrep/dmcnet/GJ **/*. cpp**/*. H **/*.
This article from http://blog.sina.com.cn/s/blog_7745fc86010147h6.html
From example
First, install the vim editor.Sudo apt-Get install vim-GTKAfter the installation is complete, we will install the ctags plug-in, which is mainly used to generate an
Today, I wrote QT and suddenly wanted to use Vim's automatic complementing function. Google decided to use neocomplcache. It has the advantages of caching, high auto-completion timeliness, and accurate keyword list generated. It can be found on the
1. Enter the character page
2. Create a folder to store the source file
Mkdir helloworld // create a folder
CD helloworld // enter the new folder. Here we should say that the directory is better, and Windows is used to it.
Vim main. C // open vim
Document directory
Plugin Introduction
Plugin installation
Plug-in usage
Plugin limitations
Extension
Summary
Expand the vim plug-in by yourself-code_complete.vim
By Ma Dongliang (cream Loki)
One man's war
Install it in Windows:1. Download from www.vim.orgTaglist_45.zip. After decompression, there are two files Doc and plugin. Copy these two files to the install directory Doc and plugin of vim.2. Open Vim: Helptags $ (home)/doc: Help taglistThen you
CtagsBuilt-in CTAG plug-in VIMRun $ ctags-R in the current project directory shell to recursively generate a tags file in the current directoryRun: Set tags = tags // in VIM to specify the current directory as the file to be read
Run: version in VIM
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.