1
0
mirror of https://github.com/amix/vimrc synced 2025-06-24 07:44:59 +08:00
This is done by removing custom FileType indent options, and using
`vim-python-pep8-indent` plugin.
This commit is contained in:
Amir Salihefendic
2019-11-16 20:16:20 +01:00
parent 97e3db7fe9
commit 966965a156
22 changed files with 1857 additions and 4 deletions

View File

@ -0,0 +1,22 @@
" vint: -ProhibitSetNoCompatible
set nocompatible
filetype plugin on
filetype indent on
syntax on
set noswapfile nobackup
" remove default ~/.vim directories to avoid loading plugins
set runtimepath-=~/.vim
set runtimepath-=~/.vim/after
let sfile = expand('<sfile>')
let plugin_path = fnamemodify(sfile, ':p:h:h')
exe 'set runtimepath^='.plugin_path
if !empty($PYTHON_PEP8_INDENT_TEST_PROFILE_BASE)
execute printf('profile start %s.%s',
\ $PYTHON_PEP8_INDENT_TEST_PROFILE_BASE, getpid())
execute 'profile! file '. plugin_path . '/indent/python.vim'
endif