Source

dotfiles / vim / .vim / ftplugin / python.vim

Full commit
set autoindent

" nice visual indicator for line length
set colorcolumn=80
set textwidth=79

" tabbing settings
set expandtab
set shiftwidth=4
set softtabstop=4
set tabstop=4

set foldmethod=indent
set omnifunc=pythoncomplete#Complete

" rewire 'make' on python files to pylint it
autocmd FileType python compiler pylint
let g:pylint_onwrite=0

" map ,# to comment lines
map ,# :s/^/#/<CR>:nohlsearch<CR>