detected while processing BufRead Auto commands for "*.py"
在.vimrc中设置python缩进格式
au BufNewFile,BufRead *.py
\ set tabstop=4
\ set softtabstop=4
\ set shiftwidth=4
\ set textwidth=79
\ set expandtab
\ set autoindent
\ set fileformat=unix
报错
Error detected while processing BufRead Auto commands for "*.py":
E518: Unknown option: set
缩进格式只需要一个set,下面是正确的设置vim python缩进格式
au BufNewFile,BufRead *.py
\ set tabstop=4
\ softtabstop=4
\ shiftwidth=4
\ textwidth=79
\ expandtab
\ autoindent
\ fileformat=unix

浙公网安备 33010602011771号