File ending in vim with xterm not working properly

Something funny is happening with my vim . I use it through xterm . I want to autocomplete the names of the files I'm trying to open.

For example:

 # Cursor is | character :o exam| :o exam|<TAB> :o examplefile.txt| 

I was sure vim supported this, but it does not work for me. When I press <TAB> ^I character is inserted instead:

 :o exam|<TAB> :o exam^I| :o exam^I|<TAB> :o exam^I^I| 

However, <TAB> works fine in bash in xterm - it fills in file names correctly and does not expand to ^I

Is my terminal configured incorrectly? Do I need a part of stty voodoo? Or is it completely different?

Edit

:e works for me - it seems that only :o does not ...

+7
vim autocomplete filenames xterm special-characters
source share
2 answers

: o is not supported in vim. Try entering: h: o, you will see the following:

Vim does not support open mode, as it is not very useful. For those situations when ": open" open mode starts, Vim will leave Ex mode, which allows you to execute the same commands, but refreshes the entire screen instead of a single line.

I think you are confusing: o and: e (they do not match).

+6
source share

edit works for me:

 :e exam|<TAB> 
+2
source share

All Articles