Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get it to work #25

Open
evert opened this issue Nov 27, 2015 · 4 comments
Open

Can't get it to work #25

evert opened this issue Nov 27, 2015 · 4 comments

Comments

@evert
Copy link

evert commented Nov 27, 2015

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
Copy link

anoopd commented Feb 10, 2016

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

@adriaanzon
Copy link

adriaanzon commented May 8, 2016

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
Copy link

VladSavitsky commented Apr 1, 2020

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants