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
posted @ 2021-04-01 15:40  bibicode  阅读(503)  评论(0)    收藏  举报