Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep initial search path #265

Open
neur1n opened this issue Jun 18, 2020 · 0 comments
Open

Keep initial search path #265

neur1n opened this issue Jun 18, 2020 · 0 comments

Comments

@neur1n
Copy link

neur1n commented Jun 18, 2020

I'm using an autocmd autocmd BufEnter * silent! lcd %:p:h in my init.vim/vimrc to automatically change directory to the opened file. When I open a file from the search results, this autocmd will be triggered (sometimes). I would like to create a pull request to avoid this behavior, so that I can always search from the initial path, e.g. root directory of a project. But even I read the source code I'm not sure which line of the code opens the file from the result. Would you please point it out? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant