vi /etc/vimrc
内容如下:
syntax on
set background=dark
:set ts=4 et sw=4 sts=4
set autoindent
set tabstop=4
set expandtab
set shiftwidth=4
filetype indent on
autocmd BufRead,BufNewFile *.py syntax on
autocmd BufRead,BufNewFile *.py set ai
autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,with,try,except,finally,def,class
阅读(1555) | 评论(0) | 转发(0) |