This question already has an answer here:
Let's say I have a text file opened in vim. I'd like to be able to edit this file from bash, let's say with the command
echo "text" >> file while the file is already opened in vim. Ideally, vim would just refresh the new content and wouldn't bother with a .swp file, asking for what version I want to restore. Any idea how to do this?