Do not open a directory with the same name when opening a file in gf

Asked 2 years ago, Updated 2 years ago, 91 views

If I set path and include, set suffixesadd, and includexpr, but there is a directory with the same name as the filename except for the extension, is there a solution?

Is there anything else I need to set up?

Thank you for your cooperation.

vim

2022-09-29 21:32

1 Answers

https://github.com/vim-jp/issues/issues/679

We have determined that it is difficult to change the default behavior with the current specifications. Instead, I wrote how to solve this problem by replacing the gf action with a map.


2022-09-29 21:32

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.