lambdalisue / vim-gina

👣 Asynchronously control git repositories in Neovim/Vim 8
http://www.vim.org/scripts/script.php?script_id=5531
MIT License
689 stars 27 forks source link

Global mappings are defined after patch action #284

Closed obcat closed 3 years ago

obcat commented 3 years ago

Problem After performing the patch action, the following mappings are defined globally:

n  dor           <Plug>(gina-diffget-r)
    Last set from ~/dotfiles/home/.vim/plugged/gina.vim/autoload/gina/command/patch.vim line 188
n  dol           <Plug>(gina-diffget-l)
    Last set from ~/dotfiles/home/.vim/plugged/gina.vim/autoload/gina/command/patch.vim line 186
n  do            <Plug>(gina-diffget)
    Last set from ~/dotfiles/home/.vim/plugged/gina.vim/autoload/gina/command/patch.vim line 162
n  dp            <Plug>(gina-diffput)
    Last set from ~/dotfiles/home/.vim/plugged/gina.vim/autoload/gina/command/patch.vim line 184

Expected behavior I suppose these mappings should be defined as buffer-local mappings for the patch buffers.

Environment

aonemd commented 3 years ago

Hello @lambdalisue if this is not yet resolved, I'd love to take it and send a pull request.

lambdalisue commented 3 years ago

@aonemd Thanks. AFAIK, no one takes this. So go for it 👍

aonemd commented 3 years ago

Thank you, @lambdalisue! I opened a pull request.