Meine aktuelle .vimrc Konfiguration ist unten:.vimrc Konfiguration für Python
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>
Allerdings, wenn ich Python-Skripte zu schreiben, wenn ich „ENTER“ drücken, wird es an den Anfang der nächsten Zeile gehen. Was füge ich hinzu, damit es automatisch für mich tabelliert wird?
Vielen Dank für diese, ich bin mit. Obwohl ich auch 'set expandtab' hinzugefügt habe. – Paolo
Ich kann bestätigen, dass dieses Setup gut für Python funktioniert. – Joel