junegunn / fzf.vim

fzf :heart: vim
MIT License
9.59k stars 582 forks source link

C-T new tab ergonomics #1378

Closed ds2606 closed 2 years ago

ds2606 commented 2 years ago

Is there a way to change the C-T new-tab binding (to say, for example, TAB)? I use it frequently and it feels pretty awkward. I'd like to change it in line with vim's ethos of ergonomic keymaps. I tried editing my local source but couldn't find the binding definition.

bruhtus commented 2 years ago

Did you mean open the file in new tab? If that's the case then you can use g:fzf_action like this:

let g:fzf_action = {
  \ 'tab': 'tab split',
  \ 'ctrl-x': 'split',
  \ 'ctrl-v': 'vsplit' }

put that in your vimrc or something similar.

For more example, you can check this: https://github.com/junegunn/fzf/blob/master/README-VIM.md#examples

ds2606 commented 2 years ago

awesome, thanks!!