This question already has an answer here:

I've somehow introduced a problem in my Vim configuration and I don't know how to track down where the problem is. Sometimes (most times) when I do :w then the buffer is not actually written; something else happens instead.

What can I do to find out what is happening so I know what to fix?

marked as duplicate by statox Feb 27 at 8:39

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Is your vim config under source/version control? Do you have any other ideas what happens when you :write ? Have you tried vim --clean? – D. Ben Knoble Feb 27 at 4:38
  • 1
    For now your question is an exact duplicate of How do I debug my vimrc file? so I'll close it as a duplicate. You should follow what the answer to the question says and once you find the problem if you don't know how to solve it you can ask another question with the details of what isn't working. Also if you end up asking another question, please be more specific than "something else happens instead" because it is almost impossible for other users to debug an issue like this. – statox Feb 27 at 8:39

Browse other questions tagged or ask your own question.