3 ms·
If you are writing python in vim then the following settings (in your .vimrc) might help you not hate the whitespace rules, plus having ctrl-space auto-complete
by notauser 18y ago
If you are writing python in vim then the following settings (in your .vimrc) might help you not hate the whitespace rules, plus having ctrl-space auto-complete is nice:
autocmd FileType python set omnifunc=pythoncomplete#Complete
inoremap <Nul> <C-x><C-o>
syntax on
set tabstop=4
set expandtab
set softtabstop=4
set shiftwidth=4
set autoindent
autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class