vim_search_replace
Use this tool to find and replace text in Vim, supporting regex, case-insensitive searches, and optional confirmation for each replacement. Access global and precise editing workflows.
Instructions
Find and replace with global, case-insensitive, and confirm options
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Whether to confirm each replacement (default: false) | |
| global | No | Replace all occurrences in each line (default: false) | |
| ignoreCase | No | Whether to ignore case in search (default: false) | |
| pattern | Yes | Search pattern (supports regex) | |
| replacement | Yes | Replacement text |
Input Schema (JSON Schema)
{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "confirm": { "description": "Whether to confirm each replacement (default: false)", "type": "boolean" }, "global": { "description": "Replace all occurrences in each line (default: false)", "type": "boolean" }, "ignoreCase": { "description": "Whether to ignore case in search (default: false)", "type": "boolean" }, "pattern": { "description": "Search pattern (supports regex)", "type": "string" }, "replacement": { "description": "Replacement text", "type": "string" } }, "required": [ "pattern", "replacement" ], "type": "object" }