.vimrc de configuration pour Python

Mon actuel .vimrc de configuration ci-dessous:

set nohlsearch
set ai
set bg=dark
set showmatch
highlight SpecialKey ctermfg=DarkGray
set listchars=tab:>-,trail:~
set list
autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
set tabstop=4
set shiftwidth=4
set expandtab
set autoindent
set smartindent
syntax on
set listchars=tab:>-
set listchars+=trail:.
set ignorecase
set smartcase
map <C-t><up> :tabr<cr>
map <C-t><down> :tabl<cr>
map <C-t><left> :tabp<cr>
map <C-t><right> :tabn<cr>

Cependant, quand j'écris des scripts python, lorsque que j'appuie sur "ENTER", il va aller au DÉBUT de la ligne suivante. Que dois-je ajouter pour qu'il s'auto-onglet pour moi?

InformationsquelleAutor TIMEX | 2009-10-06