mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-06 18:54:44 +08:00
Use use_tabs_not_buffers=0 by default
Ref: https://github.com/davidhalter/jedi-vim/issues/408#issuecomment-101997691
This commit is contained in:
@@ -120,12 +120,11 @@ are automatically initialized, but you can skip this:
|
|||||||
let g:jedi#auto_vim_configuration = 0
|
let g:jedi#auto_vim_configuration = 0
|
||||||
|
|
||||||
|
|
||||||
If you are a person who likes to use VIM-buffers not tabs, you might want to
|
You can make jedi-vim use tabs when going to a definition etc:
|
||||||
put that in your ``.vimrc``:
|
|
||||||
|
|
||||||
.. code-block:: vim
|
.. 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``:
|
If you are a person who likes to use VIM-splits, you might want to put this in your ``.vimrc``:
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ let s:deprecations = {
|
|||||||
\ }
|
\ }
|
||||||
|
|
||||||
let s:default_settings = {
|
let s:default_settings = {
|
||||||
\ 'use_tabs_not_buffers': 1,
|
\ 'use_tabs_not_buffers': 0,
|
||||||
\ 'use_splits_not_buffers': 1,
|
\ 'use_splits_not_buffers': 1,
|
||||||
\ 'auto_initialization': 1,
|
\ 'auto_initialization': 1,
|
||||||
\ 'auto_vim_configuration': 1,
|
\ 'auto_vim_configuration': 1,
|
||||||
|
|||||||
@@ -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*
|
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
|
You can make jedi-vim open a new tab if you use the "go to", "show
|
||||||
definition", or "related names" commands. When you set this option to 0, they
|
definition", or "related names" commands. When you leave this at the default
|
||||||
open in the current buffer instead.
|
(0), they open in the current buffer instead.
|
||||||
|
|
||||||
Options: 0 or 1
|
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*
|
6.8. `g:jedi#squelch_py_warning` *g:jedi#squelch_py_warning*
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ end
|
|||||||
describe 'goto_with_tabs'
|
describe 'goto_with_tabs'
|
||||||
before
|
before
|
||||||
set filetype=python
|
set filetype=python
|
||||||
|
let g:jedi#use_tabs_not_buffers = 1
|
||||||
end
|
end
|
||||||
|
|
||||||
after
|
after
|
||||||
@@ -75,7 +76,7 @@ describe 'goto_with_tabs'
|
|||||||
it 'multi_definitions'
|
it 'multi_definitions'
|
||||||
" This used to behave differently. Now we don't have any real multi
|
" This used to behave differently. Now we don't have any real multi
|
||||||
" definitions.
|
" definitions.
|
||||||
|
|
||||||
" put = ['import tokenize']
|
" put = ['import tokenize']
|
||||||
" silent normal G$\d
|
" silent normal G$\d
|
||||||
" Expect CurrentBufferIsModule('tokenize') == 1
|
" Expect CurrentBufferIsModule('tokenize') == 1
|
||||||
|
|||||||
@@ -2,6 +2,10 @@ source plugin/jedi.vim
|
|||||||
source test/utils.vim
|
source test/utils.vim
|
||||||
|
|
||||||
describe 'pyimport'
|
describe 'pyimport'
|
||||||
|
before
|
||||||
|
let g:jedi#use_tabs_not_buffers = 1
|
||||||
|
end
|
||||||
|
|
||||||
after
|
after
|
||||||
bd!
|
bd!
|
||||||
bd!
|
bd!
|
||||||
|
|||||||
Reference in New Issue
Block a user