Filter the count lines through the {filter} command
!!{filter}
Example
Normal 0 / 2Command-line 1 / 2Normal 2 / 2red blue
keepCursor on line 1, column 1red blue
keepCursor on line 1, column 1RED BLUE
keepCursor on line 1, column 1Filter the count lines through the {filter} command.
Enter the line filter command line.
Command line
- Input
:.!
Replace the filtered lines with the assumed output.
SIMULATED filter
- Program
tr 'a-z' 'A-Z'- Status
Assumed success; no program executed- Output
RED BLUE
Before & after
red blue
keepCursor on line 1, column 1RED BLUE
keepCursor on line 1, column 1SIMULATED filter
- Program
tr 'a-z' 'A-Z'- Status
Assumed success; no program executed- Output
RED BLUE
ILLUSTRATION. The concrete filter is tr 'a-z' 'A-Z'. Assume an available shell and a successful tool with the shown output; this data-only illustration never runs it. The motion/count covers only the shown input lines.
Details & Vim help
Filter the count lines through the {filter} command. Use in Normal mode. Braced names stand for the required argument and are not typed literally. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.