Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

marked as duplicate by garethTheRed, Jeff Schaller, MelBurslan, Anthon, jimmij Jun 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.

up vote 5 down vote accepted

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.

share|improve this answer

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