editorconfig-vim
editorconfig-vim copied to clipboard
Filename is wiped out when jumping to a buffer
Usually jumping to a buffer will immediately display the filename at the bottom of the screen. With editorconfig installed, the filename flashes and then disappears.
Commenting out Line 70 and 79 to prevent setting &encoding
, fixes the issue but I'm wondering what consequences that has.
Using Vim 8.2 in Terminal/iTerm on MacOS 10.15
https://github.com/editorconfig/editorconfig-vim/blob/c5804257c6b38c5537b71ac91ed051c70eaeb5e5/autoload/editorconfig_core/ini.vim#L70-L79
Thanks for reporting! So the settings for the buffer are applied correctly, and the issue is only the display on the status line?
I also see the filename appear in the status line and then disappear almost immediately when I switch buffers (Lubuntu Eoan, gvim 8.1). I hadn't thought about it because I use vim-airline, so I have the filename in the line above the status line. Allow me to suggest airline or some other enhanced status line as a workaround :) . lightline looks like it might be another option.
All settings seem to be applied correctly. The PR adds a quick check to see if the encoding needs to be changed before changing it.
Thanks for the suggestions, I’ve checked those out before and found that I could mostly get by with the defaults and using CTRL-G if I forget the filename. It's nice to have the filename show up at first though.