dkprice / vim-easygrep

Fast and Easy Find and Replace Across Multiple Files
The Unlicense
325 stars 45 forks source link

Incorrectly assumes current directory #71

Open o-alexandrov opened 7 years ago

o-alexandrov commented 7 years ago

Hello, thank you for a great plugin!

The Problem:

When using with ctrlp or NerdTree plugins, vim-easygrep cannot correctly pick the current location of a file. Instead, vim-easygrep thinks that the user, for example me, still stays in the folder from where he opened ctrlp or NerdTree and navigated to the destination file.

.vimrc settings:

let g:EasyGrepCommand=1
let g:EasyGrepFilesToExclude='android,ios,node_modules,coverage,*.lock,*.log,__snapshots__'

Possible solution:

Maybe there is a way to trigger relocation for vim-easygrep of the current directory after opening a new file.

Thank you!