Why is ctrl-t inserting weird text instead of opening a new tab in fzf/vim?

321 views Asked by At

I use fzf.vim (installed via vundle) to search files in my current directory. Usually pressing ctrl-t will open a file in a new vim tab, but instead of working as I expected, ctrl-t is suddenly just inserting ";5;116~" into the fzf search.

How can I fix this?

1

There are 1 answers

3
George On BEST ANSWER

After doing some searching, I found a somewhat related reddit post that recommends adding the following to your vimrc:

let &t_TI = ""
let &t_TE = ""

This solved it for me.

For more information about what this does, type :help modifyOtherKeys into vim.

Edit:

Credit @Jorengarenar, you can do it in one line:

set t_TE= t_TI=