-
Notifications
You must be signed in to change notification settings - Fork 60
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
Suggestion: enable mappings only while inside dirdiff mode #46
Comments
Can you try using &diff to detect if you are in a diff mode and map something differently? |
Good idea. I tried it but there are two small problem with this approach:
But your idea gave me another one: it would be nice to have another buffer specific variable which is only set in those buffers opened by dirdiff. Something like this:
Then I can do something like this on my .vimrc:
...and it works :) Let me know if you like this approach and I will happily create a PR. |
I map
<A-j>
and<A-k>
to:cprevious
and:cnext
to navigate the "quickfix" list when opened.I would also like to use these same keys to go to the previous and next file while in dirdiff mode (by setting variables
g:DirDiffNextKeyMap
andg:DirDiffPrevKeyMap
). Unfortunately this does not work because the original ("quickfix") mappings are lost when I do this.I see two workarounds for this:
<A-j>
and<A-k>
to execute either:cprevious
/:cnext
or:DirDiffPrev
/:DirDiffNext
.Any thoughts on this?
Thanks!
The text was updated successfully, but these errors were encountered: