vim/ftplugin/python.vim

15 lines
438 B
VimL
Raw Normal View History

2018-12-12 09:02:12 +00:00
set softtabstop=8
set tabstop=4
set shiftwidth=4
2019-03-30 17:33:39 +00:00
set textwidth=88
2018-12-12 09:02:12 +00:00
set foldmethod=indent
set foldnestmax=1
set colorcolumn=88
noremap <F4> <Esc>:w<CR>:!clear;python %<CR>
2018-12-12 09:02:12 +00:00
nnoremap <silent> <buffer> <F5> :call SaveAndExecute('python')<CR>
command! CTagsPython !ctags -R --fields=+l --languages=python --python-kinds=-iv -f ./.tags-py $(python -c "import os, sys; print(' '.join('{}'.format(d) for d in sys.path if os.path.isdir(d)))")