This question already has an answer here:

Various editors like gedit detect if the file is changed and asks to reload it. Sometimes in vim when I got many files to edit, I sometimes end up opening same file in different tabs for quick look with other files and several other reasons.

So is there anyway I can force to reload the current file before I update anything to it.

I know one option is to exit and reopen it, but I have splitted the screen and I don't want to loose that view.

marked as duplicate by garethTheRed, Jeff Schaller, MelBurslan, Anthon, jimmij Jun 16 '16 at 21:55

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


With :e! you can reload the same file and dismiss any changes that you did until that point, after the last save.

If you did not do anything in vim, but changed the file externally, you can reload by just type :e.

Not the answer you're looking for? Browse other questions tagged or ask your own question.