kien / ctrlp.vim

Fuzzy file, buffer, mru, tag, etc finder.
kien.github.com/ctrlp.vim
7.26k stars 676 forks source link

g:ctrlp_working_path_mode=0 not working properly? #743

Closed Zw1d closed 6 years ago

Zw1d commented 6 years ago

Hello, I'm trying very hard to force CtrlP to hold it's working path in the dir that I'm starting vim. I've read through all similar threads I could find, but while let g:ctrlp_working_path_mode=0 seems to solve all other people problems it still doesn't work as expected in my instance.

:echo g:ctrlp_working_path_mode after launching vim says 0

Example tree:

application/
├── Bootstrap.php
├── configs
│   ├── application.ini
├── controllers
│   ├── ContactController.php

What I do:

  1. cd application
  2. vim
  3. CTRL+P (at this point CtrlP path is application/), type contactcontrol, open first result ContactController.php
  4. Now again CTRL+P, but now the path is application/controllers/ and my search (application.ini) gives no results.

My full .vimrc is here: http://zwid.net/.vimrc-180130-issue

I would greatly appreciate any hints.

Zw1d commented 6 years ago

Ehm, okay I have tried again with only CtrlP plugin and eventually figured out that set autochdir messes up g:ctrlp_working_path_mode.