aboutsummaryrefslogtreecommitdiffstats
path: root/ftplugin/python.vim
blob: d7d3816f094817d54204c45cf6635d92770a9f14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
" Python vim settings

" Indentation
setlocal expandtab
setlocal tabstop=4
setlocal softtabstop=4
setlocal shiftwidth=4


setlocal textwidth=79


" Quickly add a debug line
nnoremap <buffer> <leader>gdo oimport ipdb; ipdb.set_trace()<Esc>_
nnoremap <buffer> <leader>gdO Oimport ipdb; ipdb.set_trace()<Esc>_


" Flake8 validation
nnoremap <buffer> <leader>gs :!flake8 %<cr>


" Add a trailing comma when expanding elements to multiple lines
let b:argwrap_tail_comma = 1