I'm using xfce4-terminal version 0.8.9.2. I have installed FZF.vim plugin and whenever I do either an
:FZF search or an
:Rg search in vim, I cannot select all the matches with Alt + a or deselect all the matches with Alt + d. When I press Alt + a, the xfce-4 terminal Tab menu opens up. When I press Alt + d, nothing happens.
Apparently in xfce-4 terminal, I have to press Esc + a to select all matches or Esc + d to deselect all matches. This is quite annoying since if I accidentally press just the Esc key without holding it down, it will cancel the command (':FZF' or ':Rg PATTERN' in this case).
How can I remap the default terminal key combinations for this?
I've tried to put the following in my .vimrc but it doesn't work:
tnoremap <A-a> <Esc>a tnoremap <A-d> <Esc>d
Neither does this:
tnoremap <M-a> <Esc>a tnoremap <M-d> <Esc>d
execute "set <M-a>=\ea" tnoremap <M-a> <Esc>a execute "set <M-d>=\ed" tnoremap <M-d> <Esc>d