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

Buffers issues #3

Open
guadix opened this issue Aug 13, 2013 · 2 comments
Open

Buffers issues #3

guadix opened this issue Aug 13, 2013 · 2 comments

Comments

@guadix
Copy link

guadix commented Aug 13, 2013

Hi, I've added the lines in my .vimrc, as in your example:

let g:pdv_template_dir = $HOME ."/.vim/bundle/pdv/templates_snip"
nnoremap :call pdv#DocumentWithSnip()

This works fine in the first buffer opened, but in all the other buffers it does nothing. Any idea why could that be?

Thanks, this work is much appreciated!

@Orteko
Copy link

Orteko commented Nov 26, 2013

The following is probably useful for anyone else that comes across this issue whilst searching:

http://www.reddit.com/r/vim/comments/1nnngz/issue_with_pdv/

@johgh
Copy link

johgh commented Dec 18, 2014

Thanks for the link. The solution is to put this line on .vimrc:
"autocmd BufRead,BufNewFile *.[file extension goes here] nnoremap
:call pdv#DocumentWithSnip()"

I think the the author of the plugin should explain in the documentation something about this. The plugin is great (when working), though

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

3 participants