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
" ------------------------------------------------------------------------
function! jedi#goto()
function! jedi#goto_assignments()
Python jedi_vim.goto()
endfunction
function! jedi#get_definition()
function! jedi#goto_definitions()
Python jedi_vim.goto(is_definition=True)
endfunction

View File

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