aboutsummaryrefslogtreecommitdiffstats
path: root/ftplugin/python.vim
blob: 2a33d4359e2788cb61edfbd0eaae94ae486239a9 (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> Zd oimport ipdb; ipdb.set_trace()<Esc>_
nnoremap <buffer> ZD 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