" ~/.vim/ftplugin/python/python.vim " Python-specific vim configuration " Tabs are expanded to 4 spaces setlocal tabstop=4 shiftwidth=4 expandtab " Show existing tabs (they can be deleted with :retab) setlocal list " Column marker: 90 characters call matchadd('ColorColumn', '\%91v', 100) setlocal textwidth=90 let b:ale_python_pylint_options = '-d invalid-name' " Mappings let mapleader = " " nnoremap C :sp ~/.vim/ftplugin/python/python.vim nnoremap x :! ./% nnoremap X :! ./% nnoremap gd :YcmCompleter GoTo nnoremap gr :YcmCompleter GoToReferences nnoremap gR :YcmCompleter RefactorRename nnoremap gd :YcmCompleter GetDoc nnoremap gT :YcmCompleter GetType nnoremap db :!tmux split-window -l '40\%' 'python -m̀ pdb %' let mapleader = "," inoremap temp :-1r ~/.vim/ftplugin/python/snips/templateGdd?<+++>cf> inoremap class :-1r ~/.vim/ftplugin/python/snips/classGdd?<+++>cf>