tobyS / pdv

PHP Documentor for VIM - Generates PHP docblocks
162 stars 32 forks source link

Can't get it to work #25

Open evert opened 9 years ago

evert commented 9 years ago

Sorry for the nondescript issue title. Big fan of version 1 of your utility, and now I would love to try v2.

I'm using Vundle, and to install this I used the following two lines:

Bundle 'tobyS/vmustache'
Bundle 'tobyS/pdv'

Installed it with BundleInstall.

Since I would like to retain the old behavior, I used the following in my .vimrc:

let g:pdv_template_dir = $HOME ."/.vim/bundle/pdv/templates_snip"
nnoremap <buffer> <C-p> :call pdv#DocumentCurrentLine()<CR>

After doing all this though, whenever I hit CTRL-p, vim just moves the cursor up one line. Any idea how I could start debugging this?

anoopd commented 8 years ago

The very same here too ....... do you have Ctrl-P installed?

adriaanzon commented 8 years ago

Remove the <buffer> part. This is only for when you put it in ftplugins/php.vim. It should probably need a change in the readme.

VladSavitsky commented 4 years ago

I did several attempt to get it working but with no luck. Documentation is very poor and stackoverflow suggested configuration of outdated version. I would like to have simple and clear steps how to install it.

" PDV - PHP Documentor for VIM - 2
Plugin 'tobyS/pdv'
  " Required for PHP Documentator:
  Plugin 'tobyS/vmustache'
  " UltiSnips - The ultimate snippet solution.
  "Plugin 'SirVer/ultisnips'
    "Plugin 'honza/vim-snippets'
:so %
:PluginInstall

Add to .vimrc:

let g:pdv_template_dir = $HOME ."/.vim/bundle/pdv/templates"
nnoremap <buffer> <C-p> :call pdv#DocumentCurrentLine()<CR>

Usage:

  1. Set cursor to function name.
  2. Press Ctrl+p This configuration works for me after hours of attempts.
VladSavitsky commented 4 years ago

Sorry for the nondescript issue title. Big fan of version 1 of your utility, and now I would love to try v2.

I'm using Vundle, and to install this I used the following two lines:

Bundle 'tobyS/vmustache'
Bundle 'tobyS/pdv'

Installed it with BundleInstall.

Since I would like to retain the old behavior, I used the following in my .vimrc:

let g:pdv_template_dir = $HOME ."/.vim/bundle/pdv/templates_snip"
nnoremap <buffer> <C-p> :call pdv#DocumentCurrentLine()<CR>

After doing all this though, whenever I hit CTRL-p, vim just moves the cursor up one line. Any idea how I could start debugging this?

I'm not sure but I belive you need this (without "_snip"):

let g:pdv_template_dir = $HOME ."/.vim/bundle/pdv/templates"

because you didn't install snippets plugin.