From 62a4997c0138796041aa257d18ee2dc6d3fd151f Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Wed, 20 Jul 2022 16:22:19 +0100 Subject: [PATCH] Use python-mode as vim ide --- states/vim/files/vimrc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/states/vim/files/vimrc b/states/vim/files/vimrc index 26cc06c..c39436f 100644 --- a/states/vim/files/vimrc +++ b/states/vim/files/vimrc @@ -32,6 +32,7 @@ Plugin 'majutsushi/tagbar' Plugin 'altercation/vim-colors-solarized' Plugin 'ctrlpvim/ctrlp.vim' Plugin 'Chiel92/vim-autoformat' +Plugin 'python-mode/python-mode' " All of your Plugins must be added before the following line call vundle#end() " required @@ -167,3 +168,14 @@ endif let g:formatdef_autopep8 = "'autopep8 --aggressive --aggressive - --range '.a:firstline.' '.a:lastline" let g:formatters_python = ['autopep8'] noremap :Autoformat + +let g:pymode_lint = 0 +let g:pymode_folding = 1 +let g:pymode_rope = 1 +let g:pymode_rope_completion = 1 + +augroup unset_folding_in_insert_mode + autocmd! + autocmd InsertEnter *.py setlocal foldmethod=marker + autocmd InsertLeave *.py setlocal foldmethod=expr +augroup END -- 2.46.2