I'm in a directory with many subfolders with a common prefix:
./pref-apple
./pref-aubergine
./pref-mango
./pref-milk
I have a file in one of these folder and I want vim to auto-complete the path just up to the first non-ambiguous match
开发者_运维百科:e ./p<TAB> -> :e ./pref-
:e ./pref-au<TAB> -> :e ./pref-aubergine/
while at the moment it will auto-complete with the full first folder-name. :e ./p<TAB> -> :e/pref-apple/
How can I do that?
You want to set wildmode=longest.
More info at :help 'wildmode'
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论