Strange issue in vim, code not updating

I have been using my Vim installation for a long time, but suddenly saving the code does not update the code. I use FuzzyFinder to view files.

Opening a file usually, i.e. since Vim from the console does not seem to pose a problem.

But when I open the file through FuzzyFinder, it shows the old code unchanged. However, opening it through another editor (or without a plugin) or running git diff shows the changes.

Is it a problem caused by Git, a bug in the plugin, or a problem with the cache?

+6
source share
2 answers

Have you tried setting the autoread parameter in .vimrc ? This should result in a reboot after making changes.

On the help page:

 When a file has been detected to have been changed outside of Vim and it has not been changed inside of Vim, automatically read it again. When the file has been deleted this is not done. 
+1
source

Try using :edit! ? I think the problem is in the buffer. Vim has a spooled file and does not reload it when you open it through the Fuzzy Finder.

+2
source

Source: https://habr.com/ru/post/906188/


All Articles