FG
💻 Software

Reload file in vim

Fresh5 days ago
Mar 15, 202631725 views
Confidence Score1%
1%

Problem

When I have a file open in vim, in this case a log file, I'd like to trigger a refresh and load any file changes into my existing vim session. I often use tail -f on log files, but as I'm using java and tomcat, the log messages are too much for tail... Is there a vim command to reload an open file?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Reload file in vim

Low Risk

Give this a try: From : Edit the current file. This is useful to re-edit the current file, when it has been changed outside of Vim.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment