From cf8466eb5928d81194e77289b04c583763ea42fd Mon Sep 17 00:00:00 2001 From: David Halter Date: Sat, 28 Jul 2012 09:45:06 +0200 Subject: [PATCH] removed get_definition in vim plugin --- jedi.vim | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/jedi.vim b/jedi.vim index 05a8286..ea48ae6 100644 --- a/jedi.vim +++ b/jedi.vim @@ -11,7 +11,7 @@ if !has('python') endif " ------------------------------------------------------------------------ -" Completion +" completion " ------------------------------------------------------------------------ function! jedi#Complete(findstart, base) @@ -69,17 +69,17 @@ endfunction " ------------------------------------------------------------------------ -" get_definition +" goto " ------------------------------------------------------------------------ -" -function! jedi#show_definition() + +function! jedi#goto() python << PYTHONEOF if 1: row, column = vim.current.window.cursor buf_path = vim.current.buffer.name source = '\n'.join(vim.current.buffer) try: - definitions = functions.get_definitions(source, row, column, buf_path) + definitions = functions.goto(source, row, column, buf_path) except functions.NotFoundError: msg = 'There is no useful expression under the cursor' except Exception: @@ -100,6 +100,9 @@ endfunction " Initialization of Jedi " ------------------------------------------------------------------------ +" defaults for jedi +let g:use_tabs_not_buffers = 0 + let s:current_file=expand("") python << PYTHONEOF