Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add <plug>(plug-preview) map #769

Merged
merged 1 commit into from
Jun 20, 2018
Merged

Add <plug>(plug-preview) map #769

merged 1 commit into from
Jun 20, 2018

Conversation

junegunn
Copy link
Owner

@junegunn junegunn commented Jun 19, 2018

This allows you to override the default behavior of o or <cr> binding in PlugDiff window.

" Move to preview window
autocmd! FileType vim-plug nmap <buffer> o <plug>(plug-preview)<c-w>P

Close #749
Close #768

This allows you to override the default behavior of `o' or `<cr>'
binding in PlugDiff window.

e.g.
    " Move to preview window
    autocmd! FileType vim-plug nmap <buffer> o <plug>(plug-preview)<c-w>P

Close #749
Close #768
@junegunn junegunn force-pushed the plug-plug-preview branch from b788cbc to 6cb8202 Compare June 20, 2018 08:44
@junegunn junegunn merged commit f80eed7 into master Jun 20, 2018
@junegunn junegunn deleted the plug-plug-preview branch June 20, 2018 09:09
@cbcoutinho
Copy link

How do you use this? Do I need to include it in my vimrc or is it in the latest master of plug-vim?

@nfischer
Copy link
Contributor

@cbcoutinho run :PlugUpgrade to get the latest version of vim-plug, then add the vimscript in #769 (comment) into your vimrc (the default behavior is the same, this vimscript configures it). Restart vim and try it out 😄

@junegunn this is great!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants