Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VI and VIM list of files

Tags:

vim

vi

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.

like image 213
wax_lyrical Avatar asked Dec 15 '22 11:12

wax_lyrical


1 Answers

: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 :EEnter

like image 80
Sagar Jain Avatar answered Jan 13 '23 16:01

Sagar Jain