1
0
Fork 0
mirror of synced 2024-06-16 05:51:11 -04:00

fix python configs

This commit is contained in:
Anastasios Zouzias 2018-08-03 12:52:12 +02:00
parent a51d56ce8b
commit 446da5d8ca
No known key found for this signature in database
GPG key ID: 6E036B2E6D0A6CC5

View file

@ -1,3 +1,25 @@
" Python
highlight BadWhitespace ctermbg=red guibg=red
" Python, PEP-008
au BufRead,BufNewFile *.py,*.pyw set expandtab
au BufRead,BufNewFile *.py,*.pyw set textwidth=139
au BufRead,BufNewFile *.py,*.pyw set tabstop=4
au BufRead,BufNewFile *.py,*.pyw set softtabstop=4
au BufRead,BufNewFile *.py,*.pyw set shiftwidth=4
au BufRead,BufNewFile *.py,*.pyw set autoindent
au BufRead,BufNewFile *.py,*.pyw match BadWhitespace /^\t\+/
au BufRead,BufNewFile *.py,*.pyw match BadWhitespace /\s\+$/
au BufNewFile *.py,*.pyw let fileformat=unix
au BufRead,BufNewFile *.py,*.pyw let b:comment_leader = '#'
autocmd BufWritePost *.py call Flake8()
let g:flake8_show_in_gutter=1 " show
" How can I open a NERDTree automatically when vim starts up if no files were specified?
autocmd StdinReadPre * let s:std_in=1
@ -10,7 +32,7 @@
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree. isTabTree()) | q | endif
" Easier split navigations
" Easier VIM split navigations
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>