Quite often I am working with files that are version controlled, so it is possible for changes to be made to them outside of Vim.What is a quick way to reload the file without having to close and reopen Vim? And is there a way to do this automatically?
How do I reload the current file?
file operations;load
The command you want is :e (short for :edit). If you use :edit! it will discard local changes and reload.You can also have vim do this automatically with set autoread in your vimrc.