editorconfig / editorconfig-vim

EditorConfig plugin for Vim
http://editorconfig.org
Other
3.14k stars 139 forks source link

Not respecting indentation settings from .vimrc when no .editorconfig file present #61

Closed joeattardi closed 8 years ago

joeattardi commented 8 years ago

If I run vim inside a project that does have an .editorconfig file, it behaves as expected.

I'm on OSX running Vim 7.4.

But if I run vim somewhere else, where there is not an .editorconfig file, this plugin is changing my indentation settings.

From my .vimrc:

set tabstop=2
set shiftwidth=2
set softtabstop=2

But then if I, say, edit a .js file in a directory without an .editorconfig file, I get this:

set tabstop? ==> tabstop=4
set shiftwidth? ==> shiftwidth=4
set softtabstop? ==> softtabstop=4
xuhdev commented 8 years ago

Do you have an .editorconfig file in an upper dir?

joeattardi commented 8 years ago

Doh! That was the problem. I'm sorry, I should have read the docs more closely.