2017 © Pedro PelĂĄez
 

library yii2-apidoc-vim

Yii 2 apidoc as Vim helpfiles

image

mikehaertl/yii2-apidoc-vim

Yii 2 apidoc as Vim helpfiles

  • Friday, May 11, 2018
  • by mike
  • Repository
  • 3 Watchers
  • 7 Stars
  • 28 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 19 Versions
  • 0 % Grown

The README.md

Yii 2 API docs for Vim

Installation

Add mikehaertl/yii2-apidoc-vim to your Vundle configuration., (*1)

Alternatively you can download the files from here, extract the package and move the docs/ directory to your ~/.vim directory., (*2)

If the help is not available after installation, you can try to issue this command in VIM:, (*3)

:helptags ~/.vimrc/doc

How to use

There is no configuration required for this plugin., (*4)

:help yii/web/Controller

You should note though, that we use a forward slash (/) instead of a backslash (\) as namespace separator. This was neccessary because when searching for tags, Vim uses regular expressions. So any backslash would indicate the start of a search pattern and you would have to type e.g. yii\\base\\Controller. Autocomplete wouldn't work very well either., (*5)

How to create the doc files

Note: This is only required if want to build your own flavour of the help files., (*6)

Start in an empty directory and install the yii2-apidoc-vim package via composer:, (*7)

composer require mikehaertl\yii2-apidoc-vim dev-master

Now you can run the apidocvim command to extract the docs in Vim format from any source files:, (*8)

./apidocvim api path/to/some/source/code /path/to/output/dir

You can also use the update-all command to automatically extract the doc files from the currenty yii2 packages installed in vendor/., (*9)

How to customize the created doc files

You can modify the view files in src/templates/views and adjust the render methods in src/templates/ApiRenderer.php., (*10)

The Versions

24/11 2014

2.0.0a

2.0.0.0-alpha

Yii 2 apidoc as Vim helpfiles

  Sources   Download

MIT

The Requires

 

by Michael HĂ€rtl

yii2 apidoc vim

30/10 2014

2.0.0

2.0.0.0

Yii 2 apidoc as Vim helpfiles

  Sources   Download

MIT

The Requires

 

by Michael HĂ€rtl

yii2 apidoc vim