On Jul 16, 12:23 pm, Edward Beach <[email protected]> wrote:
> Is there a way to define mappings local to a diff window?
>
> I have some specific mappings that I would like enabled when I'm in
> diff mode.  Normally I would set this using map <buffer> but on some
> occasions I have the buffer in one window and a diff of the buffer in
> another.  In the original buffer, &diff == 0 and in the diffed buffer
> &diff == 1 so is there an easy way to enable a mapping specific to the
> window containing the diffed buffer?
>
> Thanks!

Almost there! Check out :help :map-<expr> for the final piece.

The help may not make this clear, but it seems from experimentation
that <buffer> and <expr> can be used together without trouble.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to