🏠 Accueil
Benchmarks
📊 Tous les Benchmarks 🦖 Dinosaure v1 🦖 Dinosaure v2 ✅ To-Do List Apps 🎨 Pages Libres 🎯 FSACB - Showcase 🌍 Traduction
Modèles
🏆 Top 10 Modèles 🆓 Modèles Gratuits 📋 Tous les Modèles ⚙️ Modes Kilo Code
Ressources
💬 Prompts IA 📖 Glossaire IA 🔗 Liens Utiles
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.