rename methods

This commit is contained in:
David Halter
2013-08-23 11:24:10 +04:30
parent 3fb703f0a7
commit c3bea09d74
2 changed files with 6 additions and 6 deletions

View File

@@ -1,12 +1,12 @@
" ------------------------------------------------------------------------ " ------------------------------------------------------------------------
" functions that call python code " functions that call python code
" ------------------------------------------------------------------------ " ------------------------------------------------------------------------
function! jedi#goto() function! jedi#goto_assignments()
Python jedi_vim.goto() Python jedi_vim.goto()
endfunction endfunction
function! jedi#get_definition() function! jedi#goto_definitions()
Python jedi_vim.goto(is_definition=True) Python jedi_vim.goto(is_definition=True)
endfunction endfunction

View File

@@ -21,10 +21,10 @@ if g:jedi#auto_initialization
endif endif
execute "inoremap <buffer>".g:jedi#completions_command." <C-X><C-O>" execute "inoremap <buffer>".g:jedi#completions_command." <C-X><C-O>"
" goto / get_definition / related_names " goto / get_definition / usages
execute "noremap <buffer>".g:jedi#goto_assignments_command." :call jedi#goto()<CR>" execute "noremap <buffer>".g:jedi#goto_assignments_command." :call jedi#goto_assignments()<CR>"
execute "noremap <buffer>".g:jedi#goto_definitions_command." :call jedi#get_definition()<CR>" execute "noremap <buffer>".g:jedi#goto_definitions_command." :call jedi#goto_definitions()<CR>"
execute "noremap <buffer>".g:jedi#usages_command." :call jedi#related_names()<CR>" execute "noremap <buffer>".g:jedi#usages_command." :call jedi#usages()<CR>"
" rename " rename
execute "noremap <buffer>".g:jedi#rename_command." :call jedi#rename()<CR>" execute "noremap <buffer>".g:jedi#rename_command." :call jedi#rename()<CR>"
" documentation/pydoc " documentation/pydoc