Thursday, September 29, 2016

Three Minutes Daily Vim Tip: Tab Completion

If you want to enable tab-completion feature in vim, just like terminal, here is what you can do.

$ echo "set wildmode=longest,list,full" >> ~/.vimrc
$ echo "set wildmenu" >> ~/.vimrc

Now, when you are opening a new file, use tab key to see the files in the folder:
:e <tab>

No comments:

Post a Comment