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.
I think Vim is quite good. I don't need to use the arrow keys. Basically, I don't need to move my hands. I just need to move my fingers.
1, but one thing is thatProgramUsually, it is a pair write () or {}. After the pair is written, return to the
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
To try the English version, you need to solve the problem of Chinese support in many software programs. Vim has been used for a long time. When gedit is used occasionally, there is a problem in Chinese. Today, it cannot be solved simply.
In fact,
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
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
Vim is the god of the editor. Needless to say, the more you use it, the more powerful and convenient Vim is. However, it is powerful based on a combination of many plug-ins, and VIM itself lacks effective management of plug-ins. it is inconvenient
I used to change it in windows and Ubuntu systems all the time. Every time I use Ubuntu systems, it will not take a long time. One major reason is that I cannot find an IDE suitable for my programming in Ubuntu, I have used code: blocks and anjuta,
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
1) Why can't other people's methods work for me?
(2) how to find the last edited file?
(3) how to copy and paste it?
(4) how to replace multiple files?
(5) how to open all fold once?
(6) how to select or copy the word where the cursor is located?
(7)
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
1. Install VimSudo apt-Get install Vim
2. you can create your own configuration file in the home directory.Switch to the Home Directory # Cd ~Touch a file named. vimrc (hidden file starting)# Touch. vimrc# Vi. vimrcEnter the following
-- Kong Jianjun (kongove. cn)2008.11.15
Code Reading tools
For those who are learning the Linux kernel, reading the source code is particularly important.Because all design ideas and internal mechanisms are
It is implemented in the form of code, and
Caps LockFor us, it is basically redundant, and the position on the keyboard is unreasonable. When we accidentally pressCaps LockAnd then an error occurs.ESCThe most frequently used button in vim.Caps LockReplaceESCIt's really good, and you don't
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
, General feeling, (because the use time is not long, not comprehensive)
Generally, you can use the sensory location search type definition. However, because of the limited function of ctags, it is not necessarily useful in big projects.
Large
Vim settings code folding
Source: chinaunix blog Date: 2008.08.29 (comments in total)I want to comment
When viewing the Code, if the code is very lengthy, especially
Set the vim syntax highlight and auto indent of centos. Use your own installation and summarize the following:
1. The configuration file is located under the/etc/directory, and there is a file named vimrc, which is a public Vim configuration file in
1. Add the Edit with vim option. Each file opens a new window. Create a reg file with the following code:
Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT/*/Shell/edit with vim]@="edit with vim"[HKEY_CLASSES_ROOT/*/Shell/edit with 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.