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