🏠 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
4

Tự động hóa bằng Autocommands

#autocmd #events #automation #config

Tạo lệnh tự động chạy dựa trên các sự kiện cụ thể của buffer hoặc file.

Viết một câu lệnh autocommand để phát hiện kiểu file Python. Khi người dùng lưu file (BufWritePost), hãy tự động xóa các khoảng trắng thừa ở cuối dòng và đảm bảo file kết thúc bằng một dòng trống mới. Giải thích cách sử dụng pattern autocmd và sự kiện BufWritePost.