FG

vi: how can I jump to end of file with a new line appended?

Fresh3 days ago
Mar 15, 202634160 views
Confidence Score0%
0%

Problem

Here's an answer I want about 5 times a day. In vi, the command to go to the end of the file is . But that always leaves me at the start of the last line of the file, if files don't have a blank line at the end. How can I jump to the end of the file and append a new blank line, so that I can just s…

Error Output

G

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: vi: how can I jump to end of file with a new line appended?

Low Risk

What about Go, successively? ;-)

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment