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
The newly installed Vim file is being edited in C/C ++.ProgramWhen the line number is not displayed, pressing enter does not automatically indent, it is inconvenient to use, in this case we can simply configure Vim1. Create a New hidden file named.
Add the following at the end of the. vimrc file in your user directory:CodeYou can.
Set foldenable
Set foldmethod = Syntax "set syntax collapse Set foldcolumn = 0 "set the width of the collapsed area Setlocal foldlevel = 1999999999 "set the
"Set for vimset nu" show numbersyntax onset autoindent "indentset Ts = 4" tabstop = 4 set Sw = 4 "shiftwidth = 4 set showmatchset siset nocp" Backup set "If has (" VMS ") "Set nobackup" do not keep a backup file, use version instead "else" set
By default, the function name is not highlighted in vim.
Code Add it to the end of the/usr/share/Vim/vim73/syntax/C. Vim file:
" Highlight Functions SYN match cfunctions " \ [^ ()] *) ( " Me = e- 2 SYN match cfunctions " \ \ s *( " Me = e-
For FPGA development, hehao, forget it, don't bring a big hat ...... It is actually just playing with FPGA.
Then we found that XLINX's XPS was still ...... Line feed is still/R/N (although I cannot fully distinguish between/R,/R/N,/N, or know, but
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
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
Use ctags and taglist to read C and C ++ source code(1) Use ctags
(I) generate the tags File
Enter the source code root directory, for example,/local/zkl/datacollector. Execute the "ctags-R *" command to generate the tags file of the entire source
1. Simple replacement expression
Remove spaces at the end of all rows:% S/\ s \ + $ //
Remove all blank rows:% S/\ (\ s * \ n \) \ +/\ r/
Remove all "//" Annotations:% S! \ S *//.*!!
Remove all "/*... */" Annotations:% S! \ S */\ * \ _. \ {-} \ */\
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
Document directory
I. Software Installation
Ii. generate an index file
3. index files are generated in common source files.
4. Search Using cssag in VIM
5. Use the tags search symbol in VIM:
6. Other commands:
7. Special notes:
The Linux
Document directory
(2) Insert Mode
(3) visual mode
(1) normal insert
(2) noraml visual
I have learned Vim before, but for various reasons, I have not continued to learn it. In fact, it is not enough perseverance to stick to it. So now Vim
Link: http://easwy.com/blog/archives/advanced-vim-skills-catalog/
A good article is collected here for your reference.
Vim practical technology, Part 1:
Practical Skills
Http://www.ibm.com/developerworks/cn/linux/l-tip-vim1/Vim practical
As we get used to Vim's lightness and do not want to install the extra Tex Editor, we configure Vim according to our usage habits.
1. Install the vim-latex plug-in
: Http://sourceforge.net/projects/vim-latex/files/
DownloadVim-latex-1.8.23-2012012
Use Vim to replace SourceInsight (ctags + taglist +)
Use Vim to replace SourceInsight (ctags + taglist +)VImTags uses the example of CTAG Protocol If you do not study it, you can run the
Vim word highlightingSourceInsight supports word highlighting. I always think it is easier to read code. Today, I checked whether vim has related plug-ins. It is found that there are similar functions. Www.2cto.com
On suse enterprise 10 recently installed, vim is still the default setting. It is not easy to use. It took a night to configure it. I have sent a lot of information from the Internet and sorted it out, make a backup later ~~
Vim version: 7.3. The
Http://www.vim.org/scripts/script.php? Script_id = 40
Its easy to start and stop DrawIt: use
\ Di to start DrawIt and\ Ds to stop DrawIt.
Supported Features move and draw left move and draw right, inserting lines/space as needed move and draw up,
In VI/vim, you can use the: s command to replace the string. This command has many usage methods for different details, which can implement complex functions and record several types here for future query convenience.: S/Vivian/sky/Replace the first
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