editorconfig-vim icon indicating copy to clipboard operation
editorconfig-vim copied to clipboard

Whitespace settings lost in neovim when changing which git commit is checked out

Open stevenroose opened this issue 5 years ago • 4 comments

I've been having trouble with this plugin for about a year now. My default on most projects is to use tabs. Our work project uses spaces and has a .editorconfig to reflect this. Though very often when I have (Neo)vim open and meanwhile checkout different commits on the underlying directory, I start typing tabs again instead of spaces. As if this plugin suddenly breaks down or so.

stevenroose avatar Nov 04 '20 13:11 stevenroose

Sorry you're having trouble! Please:

  • Update to the latest
  • let g:EditorConfig_verbose=1
  • take a look at the resulting report when you open a file.

If the latest still doesn't work, please send us a full report: versions of neovim, OS, windowing system; steps to reproduce; a minimal example if at all possible.

Note that if you are using symlinks you may not get the results you expect (e.g., #123).

Edit Are you checking out older commits that don't have .editorconfig files, or that have different settings?

cxw42 avatar Nov 06 '20 13:11 cxw42