gregsexton / gitv

gitk for Vim.
938 stars 59 forks source link

Gitv remaps "redraw": Ctrl-L #41

Closed idbrii closed 12 years ago

idbrii commented 12 years ago

<C-l> is a vim command to redraw the screen. I often need to make vim redraw after doing some commands (especially ones that cause several lines of output). I think this used to be a problem for gitv, but it looks like it's not any more.

(I also use nnoremap <silent> <C-l> :nohl<CR><C-l> to clear highlighting.)

Can the Ctrl-L remapping be optional (either using <unique> or with a disable variable)?

I'd suggest mapping Ctrl-L for update instead (like netrw).

idbrii commented 12 years ago

Nevermind. I found let g:Gitv_DoNotMapCtrlKey = 1 which is close enough.

I lose <C-CR> in file mode, but fortunately I don't lose <C-n> and <C-p>!

I guess I'm looking for g:DoNotChangeVimCtrlMeaning so things like <C-CR> (which has no meaning) and <C-n> and <C-p> (which maps reasonably well to the vim meaning) still work. Maybe that's too specific to me.