Vim之Error detected while processing BufRead Auto commands for "*.py":E518: Unknown option: set

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

处理如下:

au BufNewFile,BufRead *.py
    \ set tabstop=4 |
    \ set softtabstop=4 |
    \ set shiftwidth=4 |
    \ set textwidth=79 |
    \ set expandtab |
    \ set autoindent |
    \ set fileformat=unix

原文:https://blog.csdn.net/jeff_liu_sky_/article/details/53955888

你可能感兴趣的:(Vim之Error detected while processing BufRead Auto commands for "*.py":E518: Unknown option: set)