pdv icon indicating copy to clipboard operation
pdv copied to clipboard

Can't get it to work

Open evert opened this issue 8 years ago • 4 comments

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?

evert avatar Nov 27 '15 23:11 evert

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

anoopd avatar Feb 10 '16 10:02 anoopd

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.

adriaanzon avatar May 08 '16 21:05 adriaanzon

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 avatar Apr 01 '20 23:04 VladSavitsky

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.

VladSavitsky avatar Apr 01 '20 23:04 VladSavitsky