I like vim's tab completion, when I'm using a command it can help me complete the command, and when I'm open a file it can help me complete the path or file name.
But when I'm using it to complete the path, for example that I'm about to open test1/vimrc
to edit, but I don't want to type the path manually, so I pressed Tab :
test/ test1/ test2/
This is the list for my directories, then I pressed Tab twice to select the test1/
. But now, if I press Enter , then vim will open the directory(However I don't want to do that).
I can only press Space + BackSpace to select the test1/
and press Tab again to list all files in test1/
.
Now my problem is, is it possible to configure if the select is a directory, press Enter will only select it but won't open it untill I press Enter again? (like oh-my-zsh
default tab completion configuration)
您可以按向下箭头↓,这将选择目录
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.