You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
637 B
VimL
20 lines
637 B
VimL
11 years ago
|
" Python specific settings.
|
||
|
setlocal list
|
||
|
setlocal tabstop=4
|
||
|
setlocal shiftwidth=4
|
||
|
setlocal expandtab
|
||
|
setlocal autoindent
|
||
|
setlocal formatoptions=croql
|
||
|
nmap <F5> :w <CR> :!clear; python % <CR>
|
||
|
nmap <F6> :w <CR> :!python %
|
||
|
" set foldmethod=indent
|
||
|
let python_highlight_all=1
|
||
|
|
||
|
" Use the below highlight group when displaying bad whitespace is desired.
|
||
|
highlight BadWhitespace ctermbg=red guibg=red
|
||
|
|
||
|
" Display tabs at the beginning of a line in Python mode as bad.
|
||
|
au BufRead,BufNewFile *.py,*.pyw match BadWhitespace /^\t\+/
|
||
|
" Make trailing whitespace be flagged as bad.
|
||
|
au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match BadWhitespace /\s\+$/
|