From de5782bdc1e4cb6ff1a76c662da80268c7ed6a2c Mon Sep 17 00:00:00 2001 From: David Halter Date: Sat, 28 Jul 2012 16:07:35 +0200 Subject: [PATCH] vim-jedi plays know correctly with the jumplist --- plugin/jedi.vim | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugin/jedi.vim b/plugin/jedi.vim index 0e202261..99d2ccea 100644 --- a/plugin/jedi.vim +++ b/plugin/jedi.vim @@ -93,6 +93,11 @@ if 1: if not definitions: echo_highlight("Couldn't find any definitions for this.") elif len(definitions) == 1: + # just add some mark to add the current position to the jumplist. + # this is ugly, because it overrides the mark for '`', so if anyone + # has a better idea, let me know. + vim.command('normal! m`') + d = definitions[0] if d.module_path != vim.current.buffer.name: vim.command('edit ' + d.module_path) @@ -113,7 +118,7 @@ endfunction " Initialization of jedi-vim " ------------------------------------------------------------------------ -" default for jedi-vim +" defaults for jedi-vim let g:jedi#use_tabs_not_buffers = 0 let s:current_file=expand("")