💻 Software
How do I do a block search-and-replace with Vim?
Fresh5 days ago
Mar 15, 20265665 viewsConfidence Score0%
0%
Problem
I have text in Vim hit to put VIm in block mode highlight the text I want type this gives the this prompt I add to the prompt my regex . This leaves me with and the text highlighted I hit enter Unfortunately, it operates on the whole line for the block, not just the block. Is there anyway to do a b…
Error Output
Ctrl+V
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How do I do a block search-and-replace with Vim?
Low Risk
When using ex commands in visual block mode, , they always operate on the whole line. There are two ways around this: The atom will match only inside the visual area. Try See There are special visual versions of some commands, live v_s or v_r. See
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix