简体   繁体   English

在.vimrc中获取Vim设置

[英]Sourcing Vim settings inside .vimrc

I've been trying to order my .vimrc a bit - 我一直在尝试订购我的.vimrc -
divide everything into different files and source everything in it: 将所有内容划分为不同的文件并将其中的所有内容

source ~/.vim/settings/general.vim
source ~/.vim/settings/functions.vim
source ~/.vim/settings/bindings.vim
source ~/.vim/plugins/autocorrect/plugin/autocorrect.vim
source ~/.vim/settings/playground.vim

The general.vim contains all the settings of Vim (eg set nocompatible ). general.vim包含Vim的所有设置(例如, set nocompatible )。
So far, only binding.vim and autocorrect.vim seem to work. 到目前为止,只有binding.vimautocorrect.vim似乎有效。
The first two files have to be included in the .vimrc for them to work. 前两个文件必须包含在.vimrc中才能使用。

Does anyone have any idea as to why? 有谁知道为什么?

Got it. 得到它了。 It eventually WAS an issue of trailing spaces, only I failed to recognize it with the text editor. 它最终是一个尾随空格的问题,只是我没有用文本编辑器识别它。 When removed, it worked perfectly. 删除后,它完美地工作。

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

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