VIP 👤
🏠 Inicio
Pruebas de rendimiento
📊 Todos los benchmarks 🦖 Dinosaurio v1 🦖 Dinosaurio v2 ✅ Aplicaciones To-Do List 🎨 Páginas libres creativas 🎯 FSACB - Showcase definitivo 🌍 Benchmark de traducción
Modelos
🏆 Top 10 modelos 🆓 Modelos gratuitos 📋 Todos los modelos ⚙️ Kilo Code
Recursos
💬 Biblioteca de prompts 📖 Glosario de IA 🔗 Enlaces útiles 🔌 API y routers
intermediate

Tìm kiếm và thay thế văn bản

#vim #search #replace #regex

Cách tìm một chuỗi ký tự và thay thế nó trong một file hoặc toàn bộ file.

Tôi cần thay thế tất cả các lần xuất hiện của từ 'foo' thành 'bar' trong toàn bộ file đang mở. Hãy cung cấp cú pháp chính xác của lệnh ex để thực hiện việc này. Ngoài ra, hãy cho biết cách sửa đổi lệnh đó để yêu cầu xác nhận (confirm) trước khi thay thế từng từ.