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

Add g:loaded_miniyank #9

Open
kurkale6ka opened this issue Dec 20, 2016 · 2 comments
Open

Add g:loaded_miniyank #9

kurkale6ka opened this issue Dec 20, 2016 · 2 comments

Comments

@kurkale6ka
Copy link

kurkale6ka commented Dec 20, 2016

It'd be nice to have the above variable defined so when testing I could disable the plugin and not have to also manually comment lines such as:

map p <Plug>(miniyank-autoput)

I'd like to be able to do this basically: (in ~/.vim/after/plugin/miniyank.vim)

if exists('g:loaded_miniyank')
   map p <Plug>(miniyank-autoput)
endif
@bfredl
Copy link
Owner

bfredl commented Dec 21, 2016

There is a generic way to do this for plugins with <Plug> mappings: Use the condition if mapcheck("<Plug>(miniyank-autoput)", "n") != ""

@kurkale6ka
Copy link
Author

That works for me. Thanks

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

2 participants