Vim's God-level configuration

Source: Internet
Author: User
There are rumors about vim's God-level configuration: vim is the god of the editor, and (xxx) is the editor of the gods. That is to say, vim is the best editor, and most people at the level of great gods use the editor (xxx. If you are not a human, use vim. A good configuration of vim is similar to a good IDE compiling of vim's God-level configuration: vim is the god of the editor, and (xxx) is the editor of God. That is to say, vim is the best editor, and most people at the level of great gods use the editor (xxx. If you are not a human, use vim. A good configuration of vim is similar to a good IDE editing environment. Because the configuration file is too large, this website cannot be placed, so it has to be placed on CSDN (30.37 MB) http://download.csdn.net/detail/bubifengyun/6282979 . The following describes some operations. Preparations. You must have installed vim, ctags, cssag, and other plug-ins. (Ubuntu) can be directly installed using sudo apt-get install vim/ctags/csloud and other methods. /Means selecting one of them as needed. Decompress the configuration package. There are five files in it. if gvim is not used in windows or ubuntu, only the configurations in vim are used. You can follow the instructions in this section. for Linux users, ensure that the complete vim is installed (if it is Ubuntu, install vim in the software center) and install Ctags and cs.pdf, otherwise, the vim loading error message may appear. after these operations are completed, you can directly rename the vimfiles directory and _ vimrc file in the decompressed file. vim directory and. vimrc file and copy it ~ /Directory (that is, the user's home directory of the Linux system). I tested it with Ubuntu. In windows, I use Putty to access the fedora18 server. if I press F2 in the preceding configuration, the directory bar will not appear. then I find that the F2 shortcut key is in conflict. in the vimrc file, the file is changed to F8. If no conflict is found, you can open the directory bar normally. In the. vimrc file, I modified set wrap and changed the non-auto-wrapping feature in the original configuration. In general, the configuration is very simple. If any problem occurs, you can discuss it with me below. A small example. In the working environment ubuntu12.4 and vim 7.3, ctags and csags have been installed. And in the directory ~ The/sources folder contains a large amount of code. Suppose there are test1.c, test2.c, test3.c, test4.c 1. jump to the sources folder. 1cd ~ /Sources2. generate the target index. what does the code below mean? it can be queried elsewhere. 1 ctags-R3. open multiple files in the tab bar. after each file is displayed, you can click to open each file in the tab bar of the browser. 1vim-p test1.c test2.c test3.c if you want to continue opening other files, you are already in the vim file, you can use the following command. 1: tabnew test4.c4. open the directory bar and press And click T, L the framework structure of the article. You can run the following commands respectively (assuming that you have already installed the vim file and are in the command mode ). You can double-click the directory to open the corresponding file. 5. for syntax highlighting, auto-completion of brackets and quotation marks, and so on, it will be automatically skipped. And ctags.

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.