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

#vi #search #replace #substitute

Cách sử dụng lệnh tìm kiếm và thay thế chuỗi ký tự trong file.

Giải thích cú pháp cơ bản để tìm kiếm một từ khóa trong vi (dùng dấu gạch chéo '/'). Sau đó, hướng dẫn chi tiết cách thực hiện lệnh thay thế (substitute) với cú pháp ':s/tim_kiem/thay_the/flags'. Cung cấp ví dụ cụ thể về cách thay thế lần xuất hiện đầu tiên, cách thay thế toàn bộ dòng ('g') và cách thay thế toàn bộ file ('%s').