nvim/after/ftplugin/python.vim

20 lines
525 B
VimL

set tabstop=4
set softtabstop=0
set shiftwidth=4
set noexpandtab
" set softtabstop=8
" set tabstop=4
" set shiftwidth=4
set textwidth=88
set foldmethod=indent
set foldnestmax=1
set colorcolumn=88
noremap <F4> :w<CR>:silent !clear;python %<CR> :redraw!<CR>
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)))")