简体   繁体   English

Windows VIM无法从当前目录加载vimrc文件

[英]VIM for windows doesn't load vimrc file from current directory

i starting to use VIM for windows, i download the minimal windows vim exe from here: 我开始在Windows上使用VIM,我从这里下载最小的Windows vim exe:
http://www.vim.org/download.php#pc http://www.vim.org/download.php#pc
i created simple vimrc file that is located in the gvim.exe directory that looks like this : vimrc: 我创建了一个简单的vimrc文件,该文件位于gvim.exe目录中,如下所示:vimrc:

set secure exrc
"disable beep 
set noeb vb t_vb=

"color scheme
set background=dark
highlight Normal guibg=Black guifg=White

"remove topbar
set guioptions-=T

the thing is that when i execute the gvim.exe , it doesn't load the vimrc it load it only when from within vim i run : 关键是,当我执行gvim.exe时,它不会加载vimrc,而仅在我运行的vim内部时才加载它:

:e vimrc
:so %

what i missing here ? 我在这里想念什么?

Your plugins, colorschemes, etc. are supposed to be here: 您的插件,colorschemes等应该在这里:

%userprofile%\vimfiles

Your vimrc is supposed to be there: 您的vimrc应该在那里:

%userprofile%\vimfiles\vimrc

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM