-
-
Notifications
You must be signed in to change notification settings - Fork 9
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 option to check prefix override. #26
Comments
I'm trying to understand your use case, but I'm not sure if I follow exactly what the source of your problem is. I don't understand what you mean with "use the prefix set in gopher_map in the prefix of another plugin command". Do you mean you have the prefer (e.g. I'd prefer to avoid adding another setting and just do the The Right Thing™ instead, if that's possible. |
Thank you for your reply. And sorry for not enough information. GoDiag's result is below.
And, the minimum configuration .vimrc I am thinking of is below. function AnotherPluginFunc() abort
echomsg 'func'
endfunction
nnoremap <Plug>(another-plugin-cmd) :<C-u>call AnotherPluginFunc()<CR>
nmap ;a <Plug>(another-plugin-cmd)
call plug#begin('~/.vim/plugged')
Plug 'arp242/gopher.vim'
let g:gopher_map = {
\ '_popup': 0,
\ }
call plug#end() With the above vimrc configuration, the following error message is displayed when vim starts. gopher.vim: skipping normal mode mappings as ; is already mapped to <Plug>(another-plugin-cmd) I want to use gopher.vim commands (e.g. I also want to use the prefix used in gopher.vim as a prefix for other commands. Thank you. |
Right, I see what you mean now: you have So how it should work is something like:
I think that would work? It's not a simple change, and I want to work on another project this week. I've reverted this change for the time being, until I can do it right. Updating to the latest master should fix things for you for now. |
Thank you for your quick response! After updating to master, no errors occurred.
I think the above is the best! Thank you very much. |
Hi, thank you for the great plugin. I use it very conveniently.
But I don't want to check if the prefix overrides other commands.
This is because I disable popup and use the prefix set in gopher_map in the prefix of another plugin command.
So how about adding the following options?
And, ftplugin/go.vim.
Thanks.
The text was updated successfully, but these errors were encountered: