1

I have Debian Jessie and vim terminal text editor. I try to autocomplete a file path in insert mode. When I type ctrl and x simultaneously no path completing is done but two chars are displayed:

^X

I had another Jessie installation two days ago and this worked properly but I had to reinstall Debian. Now path autocompletion doesn't work. How to fix it?

edit: My issue is shown on the gif. I press ctrl+x and no completion happens:

enter image description here

4
  • 1
    Do you mean vi or vim? I don't think vi has autocompletion.
    – Rio6
    Commented Mar 18, 2017 at 8:37
  • Yes it's vim. You are right.
    – trzczy
    Commented Mar 18, 2017 at 8:53
  • Does the problem still happen when starting vim with vim -u NONE ?
    – thrig
    Commented Mar 18, 2017 at 14:23
  • I installed vim and the problem disappeared. I will test this next time on fresh Debian installation.
    – trzczy
    Commented Mar 18, 2017 at 14:28

2 Answers 2

2

It is actually ^X^F, as in screenshot below:

enter image description here

3
  • I know how it should work. But in my case pressing ctrl+x makes vim display literally ^X. Need help how to fix it.
    – trzczy
    Commented Mar 18, 2017 at 9:23
  • @trzczy You're using vi, not vim. This feature is not available in vi.
    – Kusalananda
    Commented Mar 18, 2017 at 15:49
  • @Kusalananda No, when I typed vi without filename the information appeared that this was VIM.
    – trzczy
    Commented Mar 18, 2017 at 16:17
-1

I installed vim and it worked

apt-get install vim

edit: This is the solution.

0

Not the answer you're looking for? Browse other questions tagged .