I have a config-file that I keep open in vim, but that sometimes gets changed on disk, without these changes being reflected on the terminal. Can I refresh the content on the screen without closing and re-opening the file? If so, how?
refresh changed content of file opened in vi(m)
vim
You can use the :edit command, without specifying a file name, to reloadthe current file. If you have made modifications to the file, you can use:edit! to force the reload of the current file (you will lose yourmodifications).