Closed ninrod closed 8 years ago
Two ways:
evil-magit-want-horizontal-movement
text-mode
with C-t
If you set evil-magit-want-horizontal-movement
to t
, you'll get horizontal movement using h/l
in magit buffers. It moves other bindings accordingly - h
to H
, l
to L
, and L
to C-l
.
Other option is to toggle the magit buffer temporarily to text-mode
using C-t
which allows normal movement, copying etc.
Check evil-magit
for more information on this.
@ninrod Considering your enthusiastic response, does this answer your question?
Oh yes, C-t
nailed it.
i love the magit commit window. It splits the frame and shows me two windows: one for the commit msg and one with a magit-diff showing me the diffs of my current proposed staged changes. Lovely.
Now suppose that I want to copy a little text snippet that lies in the magit-diff window. I can easily navigate to the magit-diff buffer with
SPC w j
. But when I choose to copy a word withyiw
or simply navigate a char to the right withl
, all hell breaks loose becausel
is bound to some magit hunk staging thing.So how can I tell magit-diff buffer to behave like a normal buffer, but leave those lovely highlighted diffs untouched?