I accidentally discovered a feature of VI during a long session, a feature that I want to use, but I can't find it in my history.
If I have a list of files all ending with .property, how do I open a list of these files in vi, so that they show as a list that I can scroll down and select the correct file to edit?
I did look back in my history, but I have a million tabs open, and can't find out how I did this!
Thanks.
:e <directory containing .property files>
Enter
This will list all the files in the directory. Now you can navigate to the right file and start editing.
If you are in the directory that contains .property files, then you can just use :E
Enter
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With