Computer >> Hướng Dẫn Máy Tính >  >> Lập Trình >> Python

Cách cấu hình VIM autoindent cho file Python?


Để bật autoindent cho file Python trong VIM, dùng config sau:

Ví dụ

set ts=4
set sts=4
set sw=4
set autoindent
set smartindent
set smarttab
set expandtab

Thêm config này vào file .vimrc trong thư mục home.