]> Sergey Matveev's repositories - dotfiles.git/blob - vim/.vim/ftplugin/python/autos.vim
Py310 has convenient breakpoint()
[dotfiles.git] / vim / .vim / ftplugin / python / autos.vim
1 iabbrev <buffer> #u # coding: utf-8
2 iabbrev <buffer> tt # type: 
3 iabbrev <buffer> tti # type: ignore
4 iabbrev <buffer> trace breakpoint()
5 iabbrev <buffer> embed import code ; code.interact(local=locals())
6 iabbrev <buffer> kargs *args, **kwargs
7 iabbrev <buffer> pyldis # pylint: disable=
8 iabbrev <buffer> deff def () -> None:<ESC>F(i
9 iabbrev <buffer> """ """<ESC>o"<ESC>2i"<ESC>kA
10 nmap <buffer> <leader>ss :set lazyredraw<CR>vip:sort u<CR>:'<,'>sort i<CR>:set nolazyredraw<CR>
11 let @b = ">gvctry:\e<<oexcept Exception as err:\rimport pdb ; pdb.set_trace()\rpass\e>>k>>kP"
12 let @n = "ddV/except.*:\r<n3dd"
13 syntax keyword pythonStatement match case