-
Notifications
You must be signed in to change notification settings - Fork 15
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
Unify startput functions by removing defer. #15
base: master
Are you sure you want to change the base?
Conversation
Instead of checking for `defer` argument, check if a register was used.
As far as I understand the only reason for To just have a universal mapping I changed I think this is desirable, as I usually realize that I want a previous yank after pasting and seeing that it is a wrong one. Please check if what I did is meaningful. I have no idea of vimscript, in particular I don't know how autocommands work. I just changed your code without any understanding. But I tried it and it seems to work like I want. |
Unfortunately it can't work completely, due to limitation in nvim: we cannot distiguish ""p which should paste the
Another reason is if you want |
In case the default register was used, e.g. `""p` Vim's unmapped past will be used.
Thanks for clearing up. I think the case I don't understand what you mean by your other reason
I don't have any idea of vimscript and thus don't really know what your plug-in, or |
No. The plugin should be invoked (if the user wants it) even with explicit register, so one can cycle if the register contents were unexpected and change the register type if one wants. So instead:
But nvim should add
It's a matter of nonintrusiveness, the user can make sure the default behavior of |
Instead of checking for
defer
argument, check if a register was used.