Skip to content

Commit

Permalink
Use use_tabs_not_buffers=0 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Jun 21, 2015
1 parent 56b2268 commit 439e50e
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
5 changes: 2 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,11 @@ are automatically initialized, but you can skip this:
let g:jedi#auto_vim_configuration = 0
If you are a person who likes to use VIM-buffers not tabs, you might want to
put that in your ``.vimrc``:
You can make jedi-vim use tabs when going to a definition etc:

.. code-block:: vim
let g:jedi#use_tabs_not_buffers = 0
let g:jedi#use_tabs_not_buffers = 1
If you are a person who likes to use VIM-splits, you might want to put this in your ``.vimrc``:

Expand Down
2 changes: 1 addition & 1 deletion autoload/jedi.vim
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ let s:deprecations = {
\ }

let s:default_settings = {
\ 'use_tabs_not_buffers': 1,
\ 'use_tabs_not_buffers': 0,
\ 'use_splits_not_buffers': 1,
\ 'auto_initialization': 1,
\ 'auto_vim_configuration': 1,
Expand Down
8 changes: 4 additions & 4 deletions doc/jedi-vim.txt
Original file line number Diff line number Diff line change
Expand Up @@ -423,12 +423,12 @@ manually by calling a function in your configuration file: >
------------------------------------------------------------------------------
6.7. `g:jedi#use_tabs_not_buffers` *g:jedi#use_tabs_not_buffers*

By default, jedi-vim opens a new tab if you use the "go to", "show
definition", or "related names" commands. When you set this option to 0, they
open in the current buffer instead.
You can make jedi-vim open a new tab if you use the "go to", "show
definition", or "related names" commands. When you leave this at the default
(0), they open in the current buffer instead.

Options: 0 or 1
Default: 1 (Command output is put in a new tab)
Default: 0 (Command output is put in a new tab)

------------------------------------------------------------------------------
6.8. `g:jedi#squelch_py_warning` *g:jedi#squelch_py_warning*
Expand Down
3 changes: 2 additions & 1 deletion test/goto.vim
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ end
describe 'goto_with_tabs'
before
set filetype=python
let g:jedi#use_tabs_not_buffers = 1
end

after
Expand Down Expand Up @@ -75,7 +76,7 @@ describe 'goto_with_tabs'
it 'multi_definitions'
" This used to behave differently. Now we don't have any real multi
" definitions.

" put = ['import tokenize']
" silent normal G$\d
" Expect CurrentBufferIsModule('tokenize') == 1
Expand Down
4 changes: 4 additions & 0 deletions test/pyimport.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ source plugin/jedi.vim
source test/utils.vim

describe 'pyimport'
before
let g:jedi#use_tabs_not_buffers = 1
end

after
bd!
bd!
Expand Down

0 comments on commit 439e50e

Please sign in to comment.