wincent / command-t

⌨️ Fast file navigation for Neovim and Vim
BSD 2-Clause "Simplified" License
2.74k stars 317 forks source link

Ctrl-Backspace in gnome-terminal moves cursor left instead of deleting word #272

Closed mgedmin closed 7 years ago

mgedmin commented 7 years ago

Steps to reproduce

  1. Hit <Leader>t to trigger command-t
  2. Type some text
  3. Hit Ctrl-Backspace

What I expect

What actually happens

Additional details

wincent commented 7 years ago

Thanks for the report. I am not sure how to work around this, short of replacing the default binding of C-h (which moves the cursor left) by setting g:CommandTCursorLeftMap (removing C-h) and g:CommandTClearPrevWordMap (adding C-h).

mgedmin commented 7 years ago

I'm curious: why is C-h bound to moving left by default? I would understand it being mapped to backspace (since I think some terminals still emit ^H for backspace), but I don't think I've ever seen it bound to moving left.

wincent commented 7 years ago

C-h, C-j, C-k and C-l and mapped to movement in directions corresponding to Vim's own h/j/k/l keys.

mgedmin commented 7 years ago

Let's close this as invalid then. I'm happy enough that I can tweak this with settings for my own convenience.