dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit a5e87fe11489536d0a668b2b576792a4e8c16ea5
parent daf9160338dac99057f379878de13e0946da5810
Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date:   Fri, 29 May 2015 10:20:57 +0200

add python-mode

Diffstat:
M.vimrc | 46+++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 45 insertions(+), 1 deletion(-)

diff --git a/.vimrc b/.vimrc @@ -91,7 +91,7 @@ NeoBundle 'Lokaltog/vim-easymotion' " Take notes in rst "NeoBundle 'Rykka/clickable.vim' -NeoBundle 'Rykka/riv.vim' +"NeoBundle 'Rykka/riv.vim' "NeoBundle 'Rykka/InstantRst' " add/remove bookmark: mm @@ -103,6 +103,9 @@ NeoBundle 'Rykka/riv.vim' " clear all bookmarks in all buffers: mx NeoBundle 'MattesGroeger/vim-bookmarks' +" Python mode +NeoBundle 'klen/python-mode' + " vimproc for asynchronous processes NeoBundle 'Shougo/vimproc.vim', { \ 'build' : { @@ -478,3 +481,44 @@ nnoremap <space>/ :Ag " align things into columns interactively vnoremap <silent> <Enter> :EasyAlign<cr> + +" Python mode +" Activate rope +" Keys: +" K Show python docs +" <Ctrl-Space> Rope autocomplete +" <Ctrl-c>g Rope goto definition +" <Ctrl-c>d Rope show documentation +" <Ctrl-c>f Rope find occurrences +" <Leader>b Set, unset breakpoint (g:pymode_breakpoint enabled) +" [[ Jump on previous class or function (normal, visual, operator modes) +" ]] Jump on next class or function (normal, visual, operator modes) +" [M Jump on previous class or method (normal, visual, operator modes) +" ]M Jump on next class or method (normal, visual, operator modes) +let g:pymode_rope = 1 + +" Documentation +let g:pymode_doc = 1 +let g:pymode_doc_key = 'K' + +"Linting +let g:pymode_lint = 1 +let g:pymode_lint_checker = "pyflakes,pep8" +" Auto check on save +let g:pymode_lint_write = 1 + +" Support virtualenv +let g:pymode_virtualenv = 1 + +" Enable breakpoints plugin +let g:pymode_breakpoint = 1 +let g:pymode_breakpoint_bind = '<leader>b' + +" syntax highlighting +let g:pymode_syntax = 1 +let g:pymode_syntax_all = 1 +let g:pymode_syntax_indent_errors = g:pymode_syntax_all +let g:pymode_syntax_space_errors = g:pymode_syntax_all + +" Don't autofold code +let g:pymode_folding = 0