diff --git a/.vimrc b/.vimrc index e835ec2..1593fbc 100755 --- a/.vimrc +++ b/.vimrc @@ -1,13 +1,13 @@ "automatic reoloading of .vimrc autocmd! bufwritepost .vimrc source % -"Setup Pathogen to manage the plugins +"Setup Pathogen to manage the plugins execute pathogen#infect() call pathogen#helptags() "Rebind key -let mapleader="," +let mapleader= "\" set guioptions-=e set guioptions-=T "remove the icon bar @@ -15,6 +15,8 @@ set guioptions-=T "remove the icon bar :set guioptions-=L "remove left-hand scroll bar " 'hide' pale gray areas by ~/.gtkrc-2.0 +" start with open folds +set foldlevelstart=20 set ignorecase @@ -147,25 +149,25 @@ set wildignore+=*/coverage/* set completeopt-=preview "disable definitions window (very slow) let g:jedi#use_splits_not_buffers = "right" let g:jedi#show_call_signatures = "0" -let g:pymode_rope_lookup_project = 0 -let g:pymode_rope = 0 -let g:pymode_options_colorcolumn = 0 -let g:pymode = 1 -let g:pymode_trim_whitespaces = 1 -let g:pymode_options = 1 -"let g:pymode_folding = 0 -let g:pymode_lint_unmodified = 1 -let g:pymode_lint_ignore = "E501" -let g:pymode_lint_on_fly = 0 -let g:pymode_virtualenv = 1 -let g:pymode_doc = 1 -let g:pymode_doc_key = 'K' + " rope settings let g:pymode_rope = 0 let g:pymode_rope_lookup_project = 0 let g:pymode_rope_regenerate_on_write = 0 let g:pymode_rope_completion = 0 let g:pymode_rope_complete_on_dot = 0 +let g:pymode_options_colorcolumn = 0 +"let g:pymode = 1 +let g:pymode_trim_whitespaces = 1 +"let g:pymode_options = 1 +"let g:pymode_folding = 0 +let g:pymode_lint_unmodified = 1 +let g:pymode_lint_ignore = "E501" +"let g:pymode_lint_on_fly = 0 +"let g:pymode_virtualenv = 1 +"let g:pymode_doc = 1 +"let g:pymode_doc_key = 'K' + ""Python-mode setup "map g :call RopeGotoDefinition() "let ropevim_enable_shortcuts=1 @@ -194,8 +196,14 @@ let g:pymode_rope_complete_on_dot = 0 "inoremap =OmniPopup('k') "Python_editing.vim - folding setup -set nofoldenable +"set nofoldenable "Python execute code autocmd FileType python nnoremap :exec '!clear;python' shellescape(@%, 1) + +"Easy motion +map / (easymotion-sn) +omap / (easymotion-tn) +map n (easymotion-next) +map N (easymotion-prev) diff --git a/bundle/python-mode b/bundle/python-mode new file mode 160000 index 0000000..fd70ac2 --- /dev/null +++ b/bundle/python-mode @@ -0,0 +1 @@ +Subproject commit fd70ac2ab74a91fb049cb8e82237c34d88354673 diff --git a/bundle/vim-easymotion b/bundle/vim-easymotion new file mode 160000 index 0000000..0806257 --- /dev/null +++ b/bundle/vim-easymotion @@ -0,0 +1 @@ +Subproject commit 0806257ca6432ac7beb75c4319dadf7f3ba9907b diff --git a/ftplugin/python_editing.vim b/ftplugin_bak/python_editing.vim similarity index 100% rename from ftplugin/python_editing.vim rename to ftplugin_bak/python_editing.vim