When editing a file in Vim, which is being changed by an external

application, Vim opens a warning window (like the confirm dialog) each time a change is detected. How do I disable this warning? You can set the Vim ‘autoread’ option to automatically read the file again when it is changed outside of Vim:

    :set autoread

You can also use the following autocommand:

    autocmd FileChangedShell *

          \ echohl WarningMsg |

          \ echo "File has been changed outside of vim." |

          \ echohl None

Read free Software Algorithms and Computer Science Books by CodeAhoy Learn.

Introduction to Recursion and Backtracking

Sorting Algorithms

Introduction to C Programming Language

And More...

Speak Your Mind