diff --git a/ftplugin/python/pymode.vim b/ftplugin/python/pymode.vim index c3ade0cd..1dcff55b 100644 --- a/ftplugin/python/pymode.vim +++ b/ftplugin/python/pymode.vim @@ -2,25 +2,25 @@ if !g:pymode || pymode#default('b:pymode', 1) finish endif -if g:pymode_python == 'disable' +" if g:pymode_python == 'disable' - if g:pymode_warning - call pymode#error("Pymode requires vim compiled with +python. Most of features will be disabled.") - endif + " if g:pymode_warning + " call pymode#error("Pymode requires vim compiled with +python. Most of features will be disabled.") + " endif - finish + " finish -else +" else -let b:pymode_modified = &modified +" let b:pymode_modified = &modified " Init paths if !pymode#default('g:pymode_init', 1) call pymode#init(expand(':p:h:h:h'), g:pymode_paths) - call pymode#virtualenv#init() - call pymode#breakpoint#init() + " call pymode#virtualenv#init() + " call pymode#breakpoint#init() PymodePython from pymode.utils import patch_paths PymodePython patch_paths() @@ -29,102 +29,102 @@ if !pymode#default('g:pymode_init', 1) endif -command! -buffer -nargs=1 PymodeVirtualenv call pymode#virtualenv#activate() +" command! -buffer -nargs=1 PymodeVirtualenv call pymode#virtualenv#activate() " Setup events for pymode -au! pymode BufWritePre call pymode#buffer_pre_write() -au! pymode BufWritePost call pymode#buffer_post_write() +" au! pymode BufWritePre call pymode#buffer_pre_write() +" au! pymode BufWritePost call pymode#buffer_post_write() " Run python code -if g:pymode_run +" if g:pymode_run - command! -buffer -nargs=0 -range=% PymodeRun call pymode#run#code_run(, ) + " command! -buffer -nargs=0 -range=% PymodeRun call pymode#run#code_run(, ) - exe "nnoremap " g:pymode_run_bind ":PymodeRun" - exe "vnoremap " g:pymode_run_bind ":PymodeRun" + " exe "nnoremap " g:pymode_run_bind ":PymodeRun" + " exe "vnoremap " g:pymode_run_bind ":PymodeRun" -endif +" endif " Add/remove breakpoints -if g:pymode_breakpoint +" if g:pymode_breakpoint - exe "nnoremap " g:pymode_breakpoint_bind ":call pymode#breakpoint#operate(line('.'))" + " exe "nnoremap " g:pymode_breakpoint_bind ":call pymode#breakpoint#operate(line('.'))" -endif +" endif " Python folding -if g:pymode_folding +" if g:pymode_folding - setlocal foldmethod=expr - setlocal foldexpr=pymode#folding#expr(v:lnum) - setlocal foldtext=pymode#folding#text() + " setlocal foldmethod=expr + " setlocal foldexpr=pymode#folding#expr(v:lnum) + " setlocal foldtext=pymode#folding#text() -endif +" endif " Remove unused whitespaces -if g:pymode_trim_whitespaces - au BufWritePre call pymode#trim_whitespaces() -endif +" if g:pymode_trim_whitespaces + " au BufWritePre call pymode#trim_whitespaces() +" endif " Custom options -if g:pymode_options - setlocal complete+=t - setlocal formatoptions-=t - if v:version > 702 && !&relativenumber - setlocal number - endif - setlocal nowrap - exe "setlocal textwidth=" . g:pymode_options_max_line_length - if g:pymode_options_colorcolumn && exists('+colorcolumn') - setlocal colorcolumn=+1 - endif - setlocal commentstring=#%s - setlocal define=^\s*\\(def\\\\|class\\) -endif - -if g:pymode_lint - - command! -buffer -nargs=0 PymodeLintAuto :call pymode#lint#auto() - command! -buffer -nargs=0 PymodeLintToggle :call pymode#lint#toggle() - command! -buffer -nargs=0 PymodeLint :call pymode#lint#check() - - if v:version > 703 || (v:version == 703 && has('patch544')) - au! QuitPre call pymode#quit() - else - au! pymode BufWinLeave * silent! lclose - endif - - let b:pymode_error_line = -1 - - if g:pymode_lint_on_fly - au! pymode InsertLeave PymodeLint - endif - - if g:pymode_lint_message - au! pymode CursorMoved - au! pymode CursorMoved call pymode#lint#show_errormessage() - endif - - " Disabled for current release - if g:pymode_lint_async - " let &l:updatetime = g:pymode_lint_async_updatetime - " au! BufEnter call pymode#lint#start() - " au! BufLeave call pymode#lint#stop() - endif - -endif +" if g:pymode_options + " setlocal complete+=t + " setlocal formatoptions-=t + " if v:version > 702 && !&relativenumber + " setlocal number + " endif + " setlocal nowrap + " exe "setlocal textwidth=" . g:pymode_options_max_line_length + " if g:pymode_options_colorcolumn && exists('+colorcolumn') + " setlocal colorcolumn=+1 + " endif + " setlocal commentstring=#%s + " setlocal define=^\s*\\(def\\\\|class\\) +" endif + +" if g:pymode_lint + + " command! -buffer -nargs=0 PymodeLintAuto :call pymode#lint#auto() + " command! -buffer -nargs=0 PymodeLintToggle :call pymode#lint#toggle() + " command! -buffer -nargs=0 PymodeLint :call pymode#lint#check() + + " if v:version > 703 || (v:version == 703 && has('patch544')) + " au! QuitPre call pymode#quit() + " else + " au! pymode BufWinLeave * silent! lclose + " endif + + " let b:pymode_error_line = -1 + + " if g:pymode_lint_on_fly + " au! pymode InsertLeave PymodeLint + " endif + + " if g:pymode_lint_message + " au! pymode CursorMoved + " au! pymode CursorMoved call pymode#lint#show_errormessage() + " endif + + " " Disabled for current release + " if g:pymode_lint_async + " " let &l:updatetime = g:pymode_lint_async_updatetime + " " au! BufEnter call pymode#lint#start() + " " au! BufLeave call pymode#lint#stop() + " endif + +" endif " Show python documentation -if g:pymode_doc +" if g:pymode_doc - " Set commands - command! -buffer -nargs=1 PymodeDoc call pymode#doc#show("") + " " Set commands + " command! -buffer -nargs=1 PymodeDoc call pymode#doc#show("") - " Set keys - exe "nnoremap " g:pymode_doc_bind ":call pymode#doc#find()" - exe "vnoremap " g:pymode_doc_bind ":call pymode#doc#show(@*)" + " " Set keys + " exe "nnoremap " g:pymode_doc_bind ":call pymode#doc#find()" + " exe "vnoremap " g:pymode_doc_bind ":call pymode#doc#show(@*)" -endif +" endif " Rope support if g:pymode_rope @@ -132,128 +132,128 @@ if g:pymode_rope if g:pymode_rope_goto_definition_bind != "" exe "noremap " . g:pymode_rope_goto_definition_bind . " :call pymode#rope#goto_definition()" endif - if g:pymode_rope_show_doc_bind != "" - exe "noremap " . g:pymode_rope_show_doc_bind . " :call pymode#rope#show_doc()" - endif - if g:pymode_rope_find_it_bind != "" - exe "noremap " . g:pymode_rope_find_it_bind . " :call pymode#rope#find_it()" - endif - if g:pymode_rope_organize_imports_bind != "" - exe "noremap " . g:pymode_rope_organize_imports_bind . " :call pymode#rope#organize_imports()" - endif - - if g:pymode_rope_rename_bind != "" - exe "noremap " . g:pymode_rope_rename_bind . " :call pymode#rope#rename()" - endif - - if g:pymode_rope_rename_module_bind != "" - exe "noremap " . g:pymode_rope_rename_module_bind . " :call pymode#rope#rename_module()" - endif - - if g:pymode_rope_extract_method_bind != "" - exe "vnoremap " . g:pymode_rope_extract_method_bind . " :call pymode#rope#extract_method()" - endif - - if g:pymode_rope_extract_variable_bind != "" - exe "vnoremap " . g:pymode_rope_extract_variable_bind . " :call pymode#rope#extract_variable()" - endif - - if g:pymode_rope_inline_bind != "" - exe "noremap " . g:pymode_rope_inline_bind . " :call pymode#rope#inline()" - endif - - if g:pymode_rope_move_bind != "" - exe "noremap " . g:pymode_rope_move_bind . " :call pymode#rope#move()" - endif - - if g:pymode_rope_change_signature_bind != "" - exe "noremap " . g:pymode_rope_change_signature_bind . " :call pymode#rope#signature()" - endif - - if g:pymode_rope_use_function_bind != "" - exe "noremap " . g:pymode_rope_use_function_bind . " :call pymode#rope#use_function()" - endif - - if g:pymode_rope_generate_function_bind != "" - exe "noremap " . g:pymode_rope_generate_function_bind . " :call pymode#rope#generate_function()" - endif - - if g:pymode_rope_generate_package_bind != "" - exe "noremap " . g:pymode_rope_generate_package_bind . " :call pymode#rope#generate_package()" - endif - - if g:pymode_rope_generate_class_bind != "" - exe "noremap " . g:pymode_rope_generate_class_bind . " :call pymode#rope#generate_class()" - endif - - if g:pymode_rope_module_to_package_bind != "" - exe "noremap " . g:pymode_rope_module_to_package_bind . " :call pymode#rope#module_to_package()" - endif - - if g:pymode_rope_autoimport_bind != "" - exe "noremap " . g:pymode_rope_autoimport_bind . " :PymodeRopeAutoImport" - endif - - if g:pymode_rope_completion && g:pymode_rope_complete_on_dot - inoremap . .=pymode#rope#complete_on_dot() - endif - - command! -buffer -nargs=? PymodeRopeNewProject call pymode#rope#new() - command! -buffer PymodeRopeUndo call pymode#rope#undo() - command! -buffer PymodeRopeRedo call pymode#rope#redo() - command! -buffer PymodeRopeRenameModule call pymode#rope#rename_module() - command! -buffer PymodeRopeModuleToPackage call pymode#rope#module_to_package() - command! -buffer PymodeRopeRegenerate call pymode#rope#regenerate() - - if g:pymode_rope_autoimport - command! -buffer PymodeRopeAutoImport call pymode#rope#autoimport(expand('')) - endif + " if g:pymode_rope_show_doc_bind != "" + " exe "noremap " . g:pymode_rope_show_doc_bind . " :call pymode#rope#show_doc()" + " endif + " if g:pymode_rope_find_it_bind != "" + " exe "noremap " . g:pymode_rope_find_it_bind . " :call pymode#rope#find_it()" + " endif + " if g:pymode_rope_organize_imports_bind != "" + " exe "noremap " . g:pymode_rope_organize_imports_bind . " :call pymode#rope#organize_imports()" + " endif + + " if g:pymode_rope_rename_bind != "" + " exe "noremap " . g:pymode_rope_rename_bind . " :call pymode#rope#rename()" + " endif + + " if g:pymode_rope_rename_module_bind != "" + " exe "noremap " . g:pymode_rope_rename_module_bind . " :call pymode#rope#rename_module()" + " endif + + " if g:pymode_rope_extract_method_bind != "" + " exe "vnoremap " . g:pymode_rope_extract_method_bind . " :call pymode#rope#extract_method()" + " endif + + " if g:pymode_rope_extract_variable_bind != "" + " exe "vnoremap " . g:pymode_rope_extract_variable_bind . " :call pymode#rope#extract_variable()" + " endif + + " if g:pymode_rope_inline_bind != "" + " exe "noremap " . g:pymode_rope_inline_bind . " :call pymode#rope#inline()" + " endif + + " if g:pymode_rope_move_bind != "" + " exe "noremap " . g:pymode_rope_move_bind . " :call pymode#rope#move()" + " endif + + " if g:pymode_rope_change_signature_bind != "" + " exe "noremap " . g:pymode_rope_change_signature_bind . " :call pymode#rope#signature()" + " endif + + " if g:pymode_rope_use_function_bind != "" + " exe "noremap " . g:pymode_rope_use_function_bind . " :call pymode#rope#use_function()" + " endif + + " if g:pymode_rope_generate_function_bind != "" + " exe "noremap " . g:pymode_rope_generate_function_bind . " :call pymode#rope#generate_function()" + " endif + + " if g:pymode_rope_generate_package_bind != "" + " exe "noremap " . g:pymode_rope_generate_package_bind . " :call pymode#rope#generate_package()" + " endif + + " if g:pymode_rope_generate_class_bind != "" + " exe "noremap " . g:pymode_rope_generate_class_bind . " :call pymode#rope#generate_class()" + " endif + + " if g:pymode_rope_module_to_package_bind != "" + " exe "noremap " . g:pymode_rope_module_to_package_bind . " :call pymode#rope#module_to_package()" + " endif + + " if g:pymode_rope_autoimport_bind != "" + " exe "noremap " . g:pymode_rope_autoimport_bind . " :PymodeRopeAutoImport" + " endif + + " if g:pymode_rope_completion && g:pymode_rope_complete_on_dot + " inoremap . .=pymode#rope#complete_on_dot() + " endif + + " command! -buffer -nargs=? PymodeRopeNewProject call pymode#rope#new() + " command! -buffer PymodeRopeUndo call pymode#rope#undo() + " command! -buffer PymodeRopeRedo call pymode#rope#redo() + " command! -buffer PymodeRopeRenameModule call pymode#rope#rename_module() + " command! -buffer PymodeRopeModuleToPackage call pymode#rope#module_to_package() + " command! -buffer PymodeRopeRegenerate call pymode#rope#regenerate() + + " if g:pymode_rope_autoimport + " command! -buffer PymodeRopeAutoImport call pymode#rope#autoimport(expand('')) + " endif endif -if g:pymode_debug - " Redefine functions to be debugged here functions here. - - " NOTE: The redraw seems to be necessary to force messages to get echoed to - " the screen. See: - " https://groups.google.com/forum/#!topic/vim_use/EfcXOjq_rKE - " for details. - " silent! redraw! - " TODO: when loading with 'vim -u ./debug.vim' the messages shown in vim - " are unduly cleared. Need a fix. - - " Start debbuging environment. {{{ - if ! &verbosefile - " Get a system independent temporary filename. The 'marker' variable is - " used to get rid of a null character getting inserted at position. - " substitute() was not able to remove it. - " TODO: see https://superuser.com/questions/935574/get-rid-of-null-character-in-vim-variable - let g:pymode_debug_tempfile=matchstr( - \ execute( - \ g:pymode_python - \ . " from __future__ import print_function;" - \ . " import os;import tempfile; marker='|';" - \ . " print(marker, tempfile.gettempdir(), os.sep, " - \ . "'pymode_debug_file.txt', marker, sep='', end='')"), - \ '|\zs.*\ze|') - execute "set verbosefile=" . g:pymode_debug_tempfile - endif - call pymode#debug('Starting debug on: ' - \ . strftime("\%Y-\%m-\%d \%H:\%M:\%S") - \ . ' with file ' . &verbosefile) - " }}} - " Redefine folding expression. {{{ - if g:pymode_folding - setlocal foldexpr=pymode#debug#foldingexpr(v:lnum) - endif - call pymode#debug#sysinfo() - " }}} - " Define auto commands for vim. {{{ - augroup augroup_save_issue_commands - autocmd! - autocmd VimLeave *.py | call pymode#debug('Session history:') | silent! history - augroup END - " }}} - - endif +" if g:pymode_debug + " " Redefine functions to be debugged here functions here. + + " " NOTE: The redraw seems to be necessary to force messages to get echoed to + " " the screen. See: + " " https://groups.google.com/forum/#!topic/vim_use/EfcXOjq_rKE + " " for details. + " " silent! redraw! + " " TODO: when loading with 'vim -u ./debug.vim' the messages shown in vim + " " are unduly cleared. Need a fix. + + " " Start debbuging environment. {{{ + " if ! &verbosefile + " " Get a system independent temporary filename. The 'marker' variable is + " " used to get rid of a null character getting inserted at position. + " " substitute() was not able to remove it. + " " TODO: see https://superuser.com/questions/935574/get-rid-of-null-character-in-vim-variable + " let g:pymode_debug_tempfile=matchstr( + " \ execute( + " \ g:pymode_python + " \ . " from __future__ import print_function;" + " \ . " import os;import tempfile; marker='|';" + " \ . " print(marker, tempfile.gettempdir(), os.sep, " + " \ . "'pymode_debug_file.txt', marker, sep='', end='')"), + " \ '|\zs.*\ze|') + " execute "set verbosefile=" . g:pymode_debug_tempfile + " endif + " call pymode#debug('Starting debug on: ' + " \ . strftime("\%Y-\%m-\%d \%H:\%M:\%S") + " \ . ' with file ' . &verbosefile) + " " }}} + " " Redefine folding expression. {{{ + " if g:pymode_folding + " setlocal foldexpr=pymode#debug#foldingexpr(v:lnum) + " endif + " call pymode#debug#sysinfo() + " " }}} + " " Define auto commands for vim. {{{ + " augroup augroup_save_issue_commands + " autocmd! + " autocmd VimLeave *.py | call pymode#debug('Session history:') | silent! history + " augroup END + " " }}} + + " endif diff --git a/plugin/pymode.vim b/plugin/pymode.vim index 218d4d83..79874a76 100644 --- a/plugin/pymode.vim +++ b/plugin/pymode.vim @@ -26,10 +26,10 @@ else endif " Disable pymode warnings -call pymode#default('g:pymode_warning', 1) +" call pymode#default('g:pymode_warning', 1) " Additional python paths -call pymode#default('g:pymode_paths', []) +" call pymode#default('g:pymode_paths', []) " Python documentation support call pymode#default('g:pymode_doc', 1) @@ -41,119 +41,119 @@ call pymode#default("g:pymode_indent", 1) " TODO: currently folding suffers from a bad performance and incorrect " implementation. This feature should be considered experimental. " Enable/disable pymode folding for pyfiles. -call pymode#default("g:pymode_folding", 0) +" call pymode#default("g:pymode_folding", 0) " Maximum file length to check for nested class/def statements -call pymode#default("g:pymode_folding_nest_limit", 1000) +" call pymode#default("g:pymode_folding_nest_limit", 1000) " Change for folding customization (by example enable fold for 'if', 'for') -call pymode#default("g:pymode_folding_regex", '^\s*\%(class\|def\|async\s\+def\) .\+\(:\s\+\w\)\@!') +" call pymode#default("g:pymode_folding_regex", '^\s*\%(class\|def\|async\s\+def\) .\+\(:\s\+\w\)\@!') " call pymode#default("g:pymode_folding_regex", '^\s*\%(class\|def\|async\s\+def\)') " Enable/disable python motion operators -call pymode#default("g:pymode_motion", 1) +" call pymode#default("g:pymode_motion", 1) " Auto remove unused whitespaces on save -call pymode#default("g:pymode_trim_whitespaces", 1) +" call pymode#default("g:pymode_trim_whitespaces", 1) " Set recomended python options -call pymode#default("g:pymode_options", 1) -call pymode#default("g:pymode_options_max_line_length", 79) -call pymode#default("g:pymode_options_colorcolumn", 1) +" call pymode#default("g:pymode_options", 1) +" call pymode#default("g:pymode_options_max_line_length", 79) +" call pymode#default("g:pymode_options_colorcolumn", 1) " Enable/disable vertical display of python documentation -call pymode#default("g:pymode_doc_vertical", 0) +" call pymode#default("g:pymode_doc_vertical", 0) " Minimal height of pymode quickfix window -call pymode#default('g:pymode_quickfix_maxheight', 6) +" call pymode#default('g:pymode_quickfix_maxheight', 6) " Maximal height of pymode quickfix window -call pymode#default('g:pymode_quickfix_minheight', 3) +" call pymode#default('g:pymode_quickfix_minheight', 3) " LOAD VIRTUALENV {{{ " " Enable virtualenv support -call pymode#default('g:pymode_virtualenv', 1) +" call pymode#default('g:pymode_virtualenv', 1) " Get path to virtualenv (by default take from shell) -call pymode#default('g:pymode_virtualenv_path', $VIRTUAL_ENV) +" call pymode#default('g:pymode_virtualenv_path', $VIRTUAL_ENV) " Service variable (don't set it manually) -call pymode#default('g:pymode_virtualenv_enabled', '') +" call pymode#default('g:pymode_virtualenv_enabled', '') " }}} " RUN PYTHON {{{ " " Enable code running support -call pymode#default('g:pymode_run', 1) +" call pymode#default('g:pymode_run', 1) " Key's map for run python code -call pymode#default('g:pymode_run_bind', 'r') +" call pymode#default('g:pymode_run_bind', 'r') " }}} " CHECK CODE {{{ " " Code checking -call pymode#default('g:pymode_lint', 1) +" call pymode#default('g:pymode_lint', 1) " Check code asynchronously -call pymode#default('g:pymode_lint_async', 1) -call pymode#default('g:pymode_lint_async_updatetime', 1000) +" call pymode#default('g:pymode_lint_async', 1) +" call pymode#default('g:pymode_lint_async_updatetime', 1000) " Check code every save if file has been modified -call pymode#default("g:pymode_lint_on_write", 1) +" call pymode#default("g:pymode_lint_on_write", 1) " Check code every save (every) -call pymode#default("g:pymode_lint_unmodified", 0) +" call pymode#default("g:pymode_lint_unmodified", 0) " Check code on fly -call pymode#default("g:pymode_lint_on_fly", 0) +" call pymode#default("g:pymode_lint_on_fly", 0) " Show message about error in command line -call pymode#default("g:pymode_lint_message", 1) +" call pymode#default("g:pymode_lint_message", 1) " Choices are: pylint, pyflakes, pep8, mccabe and pep257 -call pymode#default("g:pymode_lint_checkers", ['pyflakes', 'pep8', 'mccabe']) +" call pymode#default("g:pymode_lint_checkers", ['pyflakes', 'pep8', 'mccabe']) " Skip errors and warnings (e.g. E4,W) -call pymode#default("g:pymode_lint_ignore", []) +" call pymode#default("g:pymode_lint_ignore", []) " Select errors and warnings (e.g. E4,W) -call pymode#default("g:pymode_lint_select", []) +" call pymode#default("g:pymode_lint_select", []) " Auto open cwindow if any errors has been finded -call pymode#default("g:pymode_lint_cwindow", 1) +" call pymode#default("g:pymode_lint_cwindow", 1) " If not emply, errors will be sort by defined relevance " E.g. let g:pymode_lint_sort = ['E', 'C', 'I'] " Errors first 'E', " after them 'C' and ... -call pymode#default("g:pymode_lint_sort", []) +" call pymode#default("g:pymode_lint_sort", []) " Place error signs -call pymode#default("g:pymode_lint_signs", 1) +" call pymode#default("g:pymode_lint_signs", 1) " Symbol's definitions -call pymode#default("g:pymode_lint_todo_symbol", "WW") -call pymode#default("g:pymode_lint_docs_symbol", "DD") -call pymode#default("g:pymode_lint_comment_symbol", "CC") -call pymode#default("g:pymode_lint_visual_symbol", "RR") -call pymode#default("g:pymode_lint_error_symbol", "EE") -call pymode#default("g:pymode_lint_info_symbol", "II") -call pymode#default("g:pymode_lint_pyflakes_symbol", "FF") +" call pymode#default("g:pymode_lint_todo_symbol", "WW") +" call pymode#default("g:pymode_lint_docs_symbol", "DD") +" call pymode#default("g:pymode_lint_comment_symbol", "CC") +" call pymode#default("g:pymode_lint_visual_symbol", "RR") +" call pymode#default("g:pymode_lint_error_symbol", "EE") +" call pymode#default("g:pymode_lint_info_symbol", "II") +" call pymode#default("g:pymode_lint_pyflakes_symbol", "FF") " Code checkers options " TODO: check if most adequate name name is pep8 or pycodestyle. -call pymode#default("g:pymode_lint_options_pep8", - \ {'max_line_length': g:pymode_options_max_line_length}) +" call pymode#default("g:pymode_lint_options_pep8", + " \ {'max_line_length': g:pymode_options_max_line_length}) -call pymode#default("g:pymode_lint_options_pylint", - \ {'max-line-length': g:pymode_options_max_line_length}) +" call pymode#default("g:pymode_lint_options_pylint", + " \ {'max-line-length': g:pymode_options_max_line_length}) -call pymode#default("g:pymode_lint_options_mccabe", - \ {'complexity': 12}) +" call pymode#default("g:pymode_lint_options_mccabe", + " \ {'complexity': 12}) -call pymode#default("g:pymode_lint_options_pep257", {}) -call pymode#default("g:pymode_lint_options_pyflakes", { 'builtins': '_' }) +" call pymode#default("g:pymode_lint_options_pep257", {}) +" call pymode#default("g:pymode_lint_options_pyflakes", { 'builtins': '_' }) " }}} @@ -162,13 +162,13 @@ call pymode#default("g:pymode_lint_options_pyflakes", { 'builtins': '_' }) " " Create/remove breakpoints -call pymode#default('g:pymode_breakpoint', 1) +" call pymode#default('g:pymode_breakpoint', 1) " Key's map for add/remove breakpoint -call pymode#default('g:pymode_breakpoint_bind', 'b') +" call pymode#default('g:pymode_breakpoint_bind', 'b') " Default pattern for making breakpoints. Leave this empty for auto search available debuggers (pdb, ipdb, ...) -call pymode#default('g:pymode_breakpoint_cmd', '') +" call pymode#default('g:pymode_breakpoint_cmd', '') " }}} @@ -179,38 +179,38 @@ call pymode#default('g:pymode_rope', 0) " System plugin variable if g:pymode_rope - call pymode#default('g:pymode_rope_current', '') + " call pymode#default('g:pymode_rope_current', '') " Configurable rope project root - call pymode#default('g:pymode_rope_project_root', '') + " call pymode#default('g:pymode_rope_project_root', '') " Configurable rope project folder (always relative to project root) - call pymode#default('g:pymode_rope_ropefolder', '.ropeproject') + " call pymode#default('g:pymode_rope_ropefolder', '.ropeproject') " If project hasnt been finded in current working directory, look at parents directory - call pymode#default('g:pymode_rope_lookup_project', 0) + " call pymode#default('g:pymode_rope_lookup_project', 0) " Enable Rope completion - call pymode#default('g:pymode_rope_completion', 1) + " call pymode#default('g:pymode_rope_completion', 1) " Complete keywords from not imported modules (could make completion slower) " Enable autoimport used modules - call pymode#default('g:pymode_rope_autoimport', 0) + " call pymode#default('g:pymode_rope_autoimport', 0) " Offer to import object after complete (if that not be imported before) - call pymode#default('g:pymode_rope_autoimport_import_after_complete', 0) + " call pymode#default('g:pymode_rope_autoimport_import_after_complete', 0) " Autoimported modules - call pymode#default('g:pymode_rope_autoimport_modules', ['os', 'shutil', 'datetime']) + " call pymode#default('g:pymode_rope_autoimport_modules', ['os', 'shutil', 'datetime']) " Bind keys to autoimport module for object under cursor - call pymode#default('g:pymode_rope_autoimport_bind', 'ra') + " call pymode#default('g:pymode_rope_autoimport_bind', 'ra') " Automatic completion on dot - call pymode#default('g:pymode_rope_complete_on_dot', 1) + " call pymode#default('g:pymode_rope_complete_on_dot', 1) " Bind keys for autocomplete (leave empty for disable) - call pymode#default('g:pymode_rope_completion_bind', '') + " call pymode#default('g:pymode_rope_completion_bind', '') " Bind keys for goto definition (leave empty for disable) call pymode#default('g:pymode_rope_goto_definition_bind', 'g') @@ -219,53 +219,53 @@ if g:pymode_rope call pymode#default('g:pymode_rope_goto_definition_cmd', 'new') " Bind keys for show documentation (leave empty for disable) - call pymode#default('g:pymode_rope_show_doc_bind', 'd') + " call pymode#default('g:pymode_rope_show_doc_bind', 'd') " Bind keys for find occurencies (leave empty for disable) - call pymode#default('g:pymode_rope_find_it_bind', 'f') + " call pymode#default('g:pymode_rope_find_it_bind', 'f') " Bind keys for organize imports (leave empty for disable) - call pymode#default('g:pymode_rope_organize_imports_bind', 'ro') + " call pymode#default('g:pymode_rope_organize_imports_bind', 'ro') " Bind keys for rename variable/method/class in the project (leave empty for disable) - call pymode#default('g:pymode_rope_rename_bind', 'rr') + " call pymode#default('g:pymode_rope_rename_bind', 'rr') " Bind keys for rename module - call pymode#default('g:pymode_rope_rename_module_bind', 'r1r') + " call pymode#default('g:pymode_rope_rename_module_bind', 'r1r') " Bind keys for convert module to package - call pymode#default('g:pymode_rope_module_to_package_bind', 'r1p') + " call pymode#default('g:pymode_rope_module_to_package_bind', 'r1p') " Creates a new function or method (depending on the context) from the selected lines - call pymode#default('g:pymode_rope_extract_method_bind', 'rm') + " call pymode#default('g:pymode_rope_extract_method_bind', 'rm') " Creates a variable from the selected lines - call pymode#default('g:pymode_rope_extract_variable_bind', 'rl') + " call pymode#default('g:pymode_rope_extract_variable_bind', 'rl') " Inline refactoring - call pymode#default('g:pymode_rope_inline_bind', 'ri') + " call pymode#default('g:pymode_rope_inline_bind', 'ri') " Move refactoring - call pymode#default('g:pymode_rope_move_bind', 'rv') + " call pymode#default('g:pymode_rope_move_bind', 'rv') " Generate function - call pymode#default('g:pymode_rope_generate_function_bind', 'rnf') + " call pymode#default('g:pymode_rope_generate_function_bind', 'rnf') " Generate class - call pymode#default('g:pymode_rope_generate_class_bind', 'rnc') + " call pymode#default('g:pymode_rope_generate_class_bind', 'rnc') " Generate package - call pymode#default('g:pymode_rope_generate_package_bind', 'rnp') + " call pymode#default('g:pymode_rope_generate_package_bind', 'rnp') " Change signature - call pymode#default('g:pymode_rope_change_signature_bind', 'rs') + " call pymode#default('g:pymode_rope_change_signature_bind', 'rs') " Tries to find the places in which a function can be used and changes the " code to call it instead - call pymode#default('g:pymode_rope_use_function_bind', 'ru') + " call pymode#default('g:pymode_rope_use_function_bind', 'ru') " Regenerate project cache on every save - call pymode#default('g:pymode_rope_regenerate_on_write', 1) + " call pymode#default('g:pymode_rope_regenerate_on_write', 1) endif " }}}