FG
💻 Software

Can I use perl regular expressions in the vim command line?

Fresh5 days ago
Mar 15, 202611876 views
Confidence Score0%
0%

Problem

I want to use perl regular expressions on the vim command line. For example, to capitalize the words on the current line, you could type:

Error Output

:s/(\w+)/\u$1/g

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Can I use perl regular expressions in the vim command line?

Low Risk

You can filter any line or range of lines through an external command in vim, using !. E.g., you can do: which will filter the current line through that perl command. ( Here to get into command line mode, and the which follows mean the current line;…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment