You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using VS Code with the Vim extension, I notice that:
In Vim: If you make changes to a file and then undo those changes using the u key, Vim recognizes that the buffer content matches the original file on disk. As a result, it clears the modified flag (+ in the filename) and doesn't prompt you to save upon exit.
In VS Code with Vim Extension: After making changes and undoing them with u, VS Code still marks the file as modified (indicated by a dot ● in the file tab or a dirty indicator), even though the file content matches the saved version. This means VS Code prompts you to save the file upon closing, even when no actual changes exist.
Vim's behaviour is really helpful when having changed a file accidentally, as it shows when being back to the original state by removing the dirty flag.
The text was updated successfully, but these errors were encountered:
cwarlich
changed the title
DIrty flag not removed when undoing changes.
Dirty flag not removed when undoing changes.
Jan 30, 2025
When using VS Code with the Vim extension, I notice that:
In Vim: If you make changes to a file and then undo those changes using the u key, Vim recognizes that the buffer content matches the original file on disk. As a result, it clears the modified flag (+ in the filename) and doesn't prompt you to save upon exit.
In VS Code with Vim Extension: After making changes and undoing them with u, VS Code still marks the file as modified (indicated by a dot ● in the file tab or a dirty indicator), even though the file content matches the saved version. This means VS Code prompts you to save the file upon closing, even when no actual changes exist.
Vim's behaviour is really helpful when having changed a file accidentally, as it shows when being back to the original state by removing the dirty flag.
The text was updated successfully, but these errors were encountered: