VSCodeVim / Vim

:star: Vim for Visual Studio Code
http://aka.ms/vscodevim
MIT License
13.97k stars 1.32k forks source link

vim-airline doesn't change color when switching modes #4107

Open matrixersp opened 5 years ago

matrixersp commented 5 years ago

Describe the bug vim-airline doesn't change colors when I switch between different modes.

To Reproduce Steps to reproduce the behavior:

Expected behavior When I switch between modes the color of the status bar should change.

Screenshots VSCode gif

Environment (please complete the following information):

Additional context Add any other context about the problem here.

jpoon commented 5 years ago

I cannot repro. Can you:

1) Turn on debug logging and see if there's anything interesting? 2) Share your config.

matrixersp commented 5 years ago

I don't see anything strange in the debug messages, here's my settings.json file.

Sometimes it works, sometimes it doesn't

matrixersp commented 5 years ago

I found the issue. This happens when I use jk instead of <esc>, I think VSCode tries to save the settings when the j is typed, which makes the file dirty.

Airline error

Here's the error message:

ERR Unable to write into user settings because the file is dirty. Please save the user settings file first and then try again.: Error: Unable to write into user settings because the file is dirty. Please save the user settings file first and then try again.