🏠 Home
Benchmark Hub
📊 All Benchmarks 🦖 Dinosaur v1 🦖 Dinosaur v2 ✅ To-Do List Applications 🎨 Creative Free Pages 🎯 FSACB - Ultimate Showcase 🌍 Translation Benchmark
Models
🏆 Top 10 Models 🆓 Free Models 📋 All Models ⚙️ Kilo Code
Resources
💬 Prompts Library 📖 AI Glossary 🔗 Useful 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.