vim7.4 version under Windows configuration files and where

Source: Internet
Author: User

1.vim under Windows, the default is to look for "_VIMRC" files first, or ". VIMRC" if not. This is caused by the fact that Windows does not support files and directories that begin with a dot earlier.
2.wim7.4 version under Windows default configuration file is $VIM/_VIMRC, the default plug-in folder is $vim/vimfiles, sometimes we can also build _VIMRC files and Vimfiles directory under the $home directory to manage, Their priority is higher than the default.
3.vim7.4 version under Windows, look in order is, $HOME/_VIMRC, $HOME/.VIMRC, $HOME/VIMFILES/VIMRC, $VIM/_VIMRC, $VIM/.VIMRC, $VIM/ VIM74/VIMRC, after one is found, the remaining configuration files are ignored. vim7.4 version in Linux, but also different, the main principle is the first local configuration file, after the overall configuration file, the main two configuration files are: $HOME/.VIMRC, $VIM/VIMRC
4. Variables $vim and $home can be found by entering ": Echo $VIM" or ": Echo $HOME" in VIM.
5. Under Windows will only install a configuration file by default, that is $VIM/_VIMRC, you can directly modify the file to add their own configuration, you can also use the command in VIM directly ": E $VIM/_VIMRC" to open the file modification.
6. If you use the vim-u filename command to start vim, you will use the filename you refer to as the Vim configuration file, which is useful when debugging your VIMRC, and if you suspect a problem with the Vim configuration file, you can also use "Vim-u NORC" To skip all the configuration files.

vim7.4 version under Windows configuration files and where

Related Article

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.