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

Tự động hóa lệnh dựa trên loại tệp

#autocommand #filetype #automation #configuration

Sử dụng Autocommands để thiết lập các tùy chọn môi trường riêng biệt cho từng loại tệp (ví dụ: Python, HTML, C).

Giải thích cú pháp :autocmd FileType pattern command. Ví dụ: Tự động thụt dòng 4 khoảng trắng cho Python: :autocmd FileType python setlocal shiftwidth=4 expandtab. Hướng dẫn cách liệt kê các autocmd hiện tại bằng :autocmd.