Merge pull request #336 from davidhalter/dev

Merge the dangling dev branch stuff back into master
This commit is contained in:
Dave Halter
2014-12-06 16:10:47 +01:00
4 changed files with 35 additions and 11 deletions

View File

@@ -42,6 +42,8 @@ Chris Lasher (@gotgenes) <chris.lasher@gmail.com>
Doan Thanh Nam (@tndoan) Doan Thanh Nam (@tndoan)
Markus Koller (@toupeira) Markus Koller (@toupeira)
Justin Cheevers @justincheevers Justin Cheevers @justincheevers
Talha Ahmed (@talha81) <talha.ahmed@gmail.com>
Matthew Tylee Atkinson (@matatk)
@something are github user names. @something are github user names.

View File

@@ -32,7 +32,7 @@ Documentation
============= =============
Documentation is available in your vim: ``:help jedi-vim``. You can also look Documentation is available in your vim: ``:help jedi-vim``. You can also look
it up `on github <http://github.com/davidhalter/jedi-vim>`_. it up `on github <http://github.com/davidhalter/jedi-vim/blob/master/doc/jedi-vim.txt>`_.
You can read the Jedi library documentation `here <http://jedi.jedidjah.ch>`_. You can read the Jedi library documentation `here <http://jedi.jedidjah.ch>`_.
@@ -92,9 +92,12 @@ Note that the `python-mode <https://github.com/klen/python-mode>`_ VIM plugin se
to conflict with jedi-vim, therefore you should disable it before enabling to conflict with jedi-vim, therefore you should disable it before enabling
jedi-vim. jedi-vim.
To enjoy the full features of Jedi-Vim, you should have VIM >= 7.3. For older To enjoy the full features of jedi-vim, you should have VIM >= 7.3, compiled with
version of VIM, the parameter recommendation list maybe not appeared when you type ``+conceal`` (which is not the case on some platforms, including OS X). If your VIM
open bracket after the function name. does not meet these requirements, the parameter recommendation list may not appear
when you type an open bracket after a function name. Please read
`the documentation <http://github.com/davidhalter/jedi-vim/blob/master/doc/jedi-vim.txt>`_
for details.
Settings Settings

View File

@@ -50,9 +50,15 @@ endfun
function! jedi#show_documentation() function! jedi#show_documentation()
Python jedi_vim.show_documentation() Python jedi_vim.show_documentation()
if bufnr("__doc__") > 0 let bn = bufnr("__doc__")
" If the __doc__ buffer is open in the current window, jump to it if bn > 0
silent execute "sbuffer ".bufnr("__doc__") let wi=index(tabpagebuflist(tabpagenr()), bn)
if wi >= 0
" If the __doc__ buffer is open in the current tab, jump to it
silent execute (wi+1).'wincmd w'
else
silent execute "sbuffer ".bn
endif
else else
split '__doc__' split '__doc__'
endif endif

View File

@@ -1,4 +1,4 @@
*jedi-vim.txt* - For Vim version 7.3 - Last change: 2013/3/1 *jedi-vim.txt* - For Vim version 7.3 - Last change: 2014/07/29
__ _______ _______ __ ____ ____ __ .___ ___.~ __ _______ _______ __ ____ ____ __ .___ ___.~
| | | ____|| \ | | \ \ / / | | | \/ |~ | | | ____|| \ | | \ \ / / | | | \/ |~
| | | |__ | .--. || | _____\ \/ / | | | \ / |~ | | | |__ | .--. || | _____\ \/ / | | | \ / |~
@@ -82,9 +82,22 @@ using pip: >
However, you can also install it as a git submodule if you don't want to use However, you can also install it as a git submodule if you don't want to use
jedi for anything but this plugin. How to do this is detailed below. jedi for anything but this plugin. How to do this is detailed below.
It is the best if you have VIM >= 7.3. For the older version, you probably It is best if you have VIM >= 7.3, compiled with the `+conceal` option. With
cannot see the parameter recommendation list of function after typing open older versions, you will probably not see the parameter recommendation list
bracket. for functions after typing the open bracket. Some platforms (including OS X
releases) do not ship a VIM with `+conceal`. You can check if your VIM has the
feature with >
:ver
and look for "`+conceal`" (as opposed to "`-conceal`") or >
:echo has('conceal')
which will report 0 (not included) or 1 (included). If your VIM lacks this
feature and you would like function parameter completion, you will need to
build your own VIM, or use a package for your operating system that has this
feature (such as MacVim on OS X, which also contains a console binary).
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
2.1. Installing manually *jedi-vim-installation-manually* 2.1. Installing manually *jedi-vim-installation-manually*