🏠 Home
Prestatietests
📊 Alle benchmarks 🦖 Dinosaur v1 🦖 Dinosaur v2 ✅ To-Do List applicaties 🎨 Creatieve vrije pagina's 🎯 FSACB - Ultieme showcase 🌍 Vertaalbenchmark
Modellen
🏆 Top 10 modellen 🆓 Gratis modellen 📋 Alle modellen ⚙️ Kilo Code
Bronnen
💬 Promptbibliotheek 📖 AI-woordenlijst 🔗 Nuttige links
intermediate

Tìm kiếm và thay thế

#search #replace #regex

Sử dụng /pattern để tìm và :s/old/new để thay thế.

Làm thế nào để tìm kiếm từ khóa 'error' trong tệp tin vi? Sau đó, hãy cung cấp cú pháp chính xác để thay thế lần xuất hiện đầu tiên của 'foo' thành 'bar' trên dòng hiện tại, và cú pháp để thay thế toàn bộ 'foo' thành 'bar' trong toàn bộ tệp tin.