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 [oD ]oD coD mappings for 'windo diff' #131

Closed
wants to merge 1 commit into from
Closed

Add [oD ]oD coD mappings for 'windo diff' #131

wants to merge 1 commit into from

Conversation

ericbn
Copy link

@ericbn ericbn commented Jun 8, 2017

as the lower case [cod, etc. do only 'diffthis' or 'diffoff' in the current window, and this then needs to be repeated for at least the second window to be compared. A usual workspace with two split windows to be compared would only need a 'windo diffthis'...

as the lower case [cod, etc. do only 'diffthis' or 'diffoff' in the
current window, and this then needs to be repeated for at least the
second window to be compared. A usual workspace with two split windows
to be compared would only need a 'windo diffthis'...
@ericbn
Copy link
Author

ericbn commented Jun 8, 2017

I see your comment:

And I really hate going down the windo rabbit hole.

Isn't diffthis an exception here, as it might pair well with windo in it's usual usage?

@ericbn
Copy link
Author

ericbn commented Nov 15, 2017

Closing this as it can be solved with a custom mapping like

nnoremap <leader>d :windo <C-R>=&diff ? 'diffoff' : 'diffthis'<CR><CR>

@ericbn ericbn closed this Nov 15, 2017
@ericbn ericbn deleted the windo-diff branch November 15, 2017 23:10
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

Successfully merging this pull request may close these issues.

1 participant