editorconfig / editorconfig-vim

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

Filename is wiped out when jumping to a buffer #144

Closed scottperlitch closed 1 year ago

scottperlitch commented 4 years ago

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

cxw42 commented 4 years ago

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.

scottperlitch commented 4 years ago

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.