tpope / vim-classpath

classpath.vim: Set 'path' from the Java class path
111 stars 14 forks source link

vim-classpath should keep manually set path from vimrc. #9

Closed ghost closed 9 years ago

ghost commented 9 years ago

I manually set path=$PWD/** in my .vimrc to ensure that :find works as I expect it to. With vim-classpath, navigating to another file resets my path and :find does not work as expected. Can vim-classpath simply append to the manually set path?

For example, opening vim in my project root without specifying a file allows me to :find somef<Tab> just fine. However, opening any file in my project changes the path, so calling :find anoth<Tab> does not list all of the files that it should (all of the files in the path $PWD/**.

tpope commented 9 years ago

Given that's classpath.vim's only feature, why do you have it installed? (If you installed it for fireplace.vim, it's much less necessary than it used to be, and you can probably remove it.)

ghost commented 9 years ago

I installed it for fireplace.vim. Thank you for the suggestion.