use tabs not spaces for python, move python.vmi to after/

This commit is contained in:
Ray Elliott 2020-02-26 12:10:39 +00:00
commit 57eb3389d4

19
after/ftplugin/python.vim Normal file
View file

@ -0,0 +1,19 @@
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)))")