| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Access the complete Python official API documentation directly within your editor. Search, browse, and autocomplete Python API documentation using Vim's native :help and :helpgrep commands.
Demo uses vimsuggest for autocompletion.
Install via vim-plug, lazy or Vim's built-in package manager.
Show installation instructionsAdd to your .vimrc:
call plug#begin()
Plug 'girishji/pythondoc.vim'
call plug#end()Add to your Lua config:
require("lazy").setup({
{ "girishji/pythondoc.vim", opts = {} },
})git clone https://github.com/girishji/pythondoc.vim.git $HOME/.vim/pack/downloads/opt/pythondoc.vimThen add this line to your vimrc file:
packadd vimsuggestgit clone https://github.com/girishji/pythondoc.vim.git %USERPROFILE%\vimfiles\pack\downloads\opt\pythondoc.vimThen add this line to your vimrc file:
packadd vimsuggest:help <tag> " Access all helpfiles (Python and Vim)
:Help <tag> " Python-specific documentation" In vimrc
let g:pythondoc_h_expand = 1" In ftplugin/python.vim
exe 'nnoremap <buffer> dK :<c-u>Help <c-r><c-w>'..nr2char(&wildcharm)The help files are generated from the official Python repository using the official tool and extension.
Here are the steps to generate help files:
Setup:
# Clone repositories
git clone https://github.com/girishji/pythondoc.vim
mkdir tmp
git clone https://github.com/python/cpython tmp/Create Python Environment:
cd pythondoc.vim/tmp/cpython/Doc
make venvConfigure Build:
Prepare Documentation:
Generate Documentation:
make vimhelp
cp build/vimhelp/{library,howto}/*.pyx _doc/doc/
vim "+helptags ./_doc/doc | q"This plugin is maintained for personal use but aims to stay current with Python releases.
| Back | FazBrowse Home | New Git URL |