简体   繁体   中英

vim: using “find”, how to get the path relative to the working directory

how can I get the path relative to the working directory of the file using find ? now I just get a part of the path..

I mean, when I write find **/*Confirm and press Tab I get this:

:find UserArea/activacionGarantiaConfirm.html.twig 

but I expected the path relative to my working directory:

:find Project/views/UserArea/activacionGarantiaConfirm.html.twig

By default, :find 's completion doesn't print any part of the path of potential files beyond the file name. Adding a "starstar" wildcard forces it to print the parent directory and another "starstar" will print another parent and so on…

If seeing the full path of every file is important to you, you should use :edit which prints the complete path, relative to the current directory by default.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM