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
Comments (1)
Pepsh Pepshinsky
Let’s see you to :help viminfo-file-name (option -i) :set viminfofile=NONE