FG

Vim command mode complete word

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

Problem

Is there a way to get Vim in command mode to complete words from the current file? Say I have this file: and I enter command line mode where denotes the cursor position. How do I make Vim complete or when pressing Tab?

Error Output

one
two
three
once

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Vim command mode complete word

Low Risk

jamesc's answer would often be the most convenient, but for when you know ahead of time that you'll want to use autocomplete for a command or search string, or other functions only available in a buffer, here's another way to get to the appropriate …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment